Saving Bitmaps as Files - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +----- Thread: Saving Bitmaps as Files (/thread-6907.html) |
Saving Bitmaps as Files - SephirothSpawn - 07-26-2005 Saving Bitmaps as Files SephirothSpawn Aug 17 2006 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. Ok, this isn't as much as a script as it is a tool to save bitmaps as data, then recover them later. It was nothing more than 10 minutes of working with the get_pixel and set_pixel methods. Anyways, here's the mini-code Code: module BitmapDump It is fairly simple to use: To save a bitmap, simply use: Code: BitmapDump.save_bitmap(bitmap, filename) It will then save the bitmap as data in your game folder. I would make a new folder called Bitmap Data or something and have stuff save there, but that may just be me. To Recover Saved Bitmap, use: Code: bitmap = BitmapDump.read_bitmap(filename) Just a little trick someone might find some use for (I will be soon. |