public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers
Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Bitmap Export
  • Original author: Zeus81
  • Original date: December 30, 2013
  • Source thread: https://forums.rpgmakerweb.com/threads/bitmap-export.21633/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS3 Scripts (RMVX Ace)

Summary

Bitmap Export by Zeus81​This script for rpg maker xp/vx/vxace allows you to export bitmaps as bmp32 or png32 image files. This is a script for scripters so if you're not too bad but if you are feel free to use it. It's probably the fastest script out there... well, maybe not as fast as those done in C but at least it have the advantage of not needing an extra dll.

Archived First Post

Bitmap Export
by Zeus81
This script for rpg maker xp/vx/vxace allows you to export bitmaps as bmp32 or png32 image files.
This is a script for scripters so if you're not too bad but if you are feel free to use it.
It's probably the fastest script out there... well, maybe not as fast as those done in C but at least it have the advantage of not needing an extra dll.
I've also added functions so we can serialize bitmaps.

Script
https://www.dropbox.com/s/3lqtjvosnrnnet3/Bitmap%20Export.rb

How to Use
- exporting in bmp format :
bitmap.export('prout.bmp')
or
bitmap.save('prout.bmp')
Exporting in bmp is extremly fast, but not compressed.
Since it's bmp32 it also keeps alpha channel, however not many softwares can deal with it, I just know that RPG Makers and Gimp 2.6 can.

- exporting in png format :
bitmap.export('prout.png')
or
bitmap.save('prout.png')
png is compatible with almost anything and quite well compressed, but it takes a little more time, not that much either unless you're exporting a huge bitmap.

If you don't specify any extension when exporting .png will be added automatically.

- serialize bitmap :
open('prout.rxdata', 'wb') {|file| Marshal.dump(bitmap, file)}
bitmap = open('prout.rxdata', 'rb') {|file| Marshal.load(file)}
or
save_data(bitmap, 'prout.rxdata')
bitmap = load_data('prout.rxdata')
It's quite fast and as compressed as png but only compatible with this script, you can use it if you want to store picture directly into savestates.

- snapshot
Graphics.export('prout.png')
or
Graphics.save('prout.png')
or
Graphics.snapshot('prout.png')
This is a quick way to do a screenshot.
filename is optional, and will be replaced by datetime if omitted.

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rgss3#script-archive

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar