Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
Depends on what kind of graphic you want to display, but they all use very similar methods.
Icons: bitmap = RPG::Cache.icon('iconname')
Pictures: bitmap = RPG::Cache.picture('picname')
You get the idea, then you must preform a block transfer:
self.contents.blt(x, y, bitmap, Rect.new(x, y, width, height), opacity)
self.contents.blt(x, y, bitmap, src_rect, opacity)
x = x coordinate
y = y coordinate
bitmap = bitmap of the image (Example: RPG::Cache.icon('Filename'))
src_rect = the rectangle taken from the bitmap that shows (Example: Rect.new(0, 0, 24, 24) is used to show default icons.)
opacity = the opacity of the image
self.contents.blt(x, y, bitmap, src_rect, opacity)
x = x coordinate
y = y coordinate
bitmap = bitmap of the image (Example: RPG::Cache.icon('Filename')
src_rect = the rectangle taken from the bitmap that shows (Example: Rect.new(0, 0, 24, 24) is used to show default icons.)
opacity = the opacity of the image