ID:153729
![]() Mar 25 2003, 12:41 pm
|
|
Since BYOND is capable of importing PNGs and BMPs and converting them to icons, is it also capable of doing the opposite and converting icons into PNGs or BMPs? I'd love to create a program that would upload a bunch of PNGs, convert them and rearrange them into a new PNG or BMP. (It would make things a lot easier than manually cutting and pasting a whole bunch of images.) But I don't know if that's possible, or if it is, how I would do it.
|
Triste wrote:
So can I assume that there is no way to convert pieces of a PNG into a DMI as icon states? I don't know if /icon supports this or not. If it works at all, then you should be able to specify a .png file as the source icon in icon/New() and you'll have access to its icon states like "0,0", "1,0", etc. Lummox JR |
It's capable of converting an icon into a .png if you use browse_rsc(). To convert to a .bmp you'd need some way to output a raw file (not so much doable as far as I know) and have access to the internal pixmaps of a .dmi (doable, but difficult).
Lummox JR