File save: Bitmap

I have been wondering this for a while, but what is the easiest way to save a Bitmap as a file? Most of the ruby articles I looked at wanted me to add a library, and I want to avoid that, if able... I assume it would be something similar to...

Code:
File.open("Graphics/SavedImages/screenshot_01.png", "w+") do |file|  bitmap = #...  file. #Some method here, passing bitmap as a parameter.end
Hello Zetu, if you don't want to use any external stuff, this is a pretty good option: http://forums.rpgmakerweb.com/index.php?/topic/21633-bitmap-export/
Thanks. I had been searching for something like that for awhile. *Courtesy stabs SOURCE*
Wow, I've been looking a way to save bitmap into serialized format. It would be perfect if used together with custom character creation

Thanks for asking this, Zetu

Thanks for pointing to the script, Source 😀
Wow, I've been looking a way to save bitmap into serialized format. It would be perfect if used together with custom character creation

Thanks for asking this, Zetu

Thanks for pointing to the script, Source 😀
You're welcome, Theo. There's also this: http://www.rgss-factory.net/2012/04/03/xpvxace-enregistrer-des-objets-bitmap-en-fichiers-png/

But it requires a .dll 
For some reasons, I don't like external .dll

So I will keep Zeus's script instead.

Thanks anyway 🙂

Original thread: https://forums.rpgmakerweb.com/threads/file-save-bitmap.35164/