Adding arbitrary bitmap to menu

Hello,

I am trying to create a menu that contains an image. In the Scene Maker, the encyclopedia example uses the following code:

icon = [            # bitmap location and name            "$icon[#{item.icon_index}]",            # [offset x, offset y]            [rect.x, rect.y],            # opacity            opacity,          ]
However, what I need is not an icon, but rather a image in the "Graphics" folder.
Can anyone please help?
This should do the trick here. 

result = [ #folder "filename_actor_name" x , y opacity ["$bitmap[Pictures,#{"filename"} ]", [10, 10], 255 ], ] endThere is also the big commented section in the lunatic scripts that explain to you how to do this.
 

Code:
In order to display the bitmap, this is the command: # ["$bitmap[Folder, FileName]", [X, Y], Opacity, offset_x, offset_y, width, height]#
This should do the trick here. 

result = [ #folder "filename_actor_name" x , y opacity ["$bitmap[Pictures,#{"filename"} ]", [10, 10], 255 ], ] end
Thanks a lot! That did do the trick!

However, is there a way to rotate/angle the images?

Edit: I guess what I am asking is where in this block (from Window_Base) I could set the bitmap to an angle

Code:
if text =~ /\$bitmap\[(.*)\]/i      value = $1.scan(/[^, ]+[^,]*/i)      bitmap = Cache.cache_extended(value[0], value[1])      opacity = align.is_a?(Array) ? 255 : align      bw = bitmap.width; bh = bitmap.height      rect = color.nil? ? bitmap.rect.clone : Rect.new(eval(color[0].to_s), eval(color[1].to_s), eval(color[2].to_s), eval(color[3].to_s))      contents.blt(pos[0], pos[1], bitmap, rect, opacity)
Rotating an image is still a bit over my head in scripting terms, but if it was me I would rotate the picture in photoshop/gimp and save it already rotated. Is there a specific reason you need to rotate it via scripting?  
Rotating an image is still a bit over my head in scripting terms, but if it was me I would rotate the picture in photoshop/gimp and save it already rotated. Is there a specific reason you need to rotate it via scripting?  
I was trying to avoid having to do that...

I am building a radar/spider chart that updates live. Having the possibility to rotate pictures would allow me to have 121 (11^2)  images for the chart, while not being able to rotate pictures demands that I have 721 (11^2*6-5) images...
Rotating pictures through vxace is screaming for lagfest. Just saying.
Rotating pictures through vxace is screaming for lagfest. Just saying.
I found that out :/ RGSS is not really optmized for that. Ended up generating 700+ images to account for all the possible needed rotations

Original thread: https://forums.rpgmakerweb.com/threads/adding-arbitrary-bitmap-to-menu.45124/