Manipulating IImage | developer.brewmp.com Manipulating IImage | developer.brewmp.com

Developer

Manipulating IImage

Forums:

I want to manipulate the data returned by IImage interface after using ISHELL_LoadResImage. Is it possible ?
Can some on give me the format of this data?? :confused:

In BREW v1.1, there's no way to get at the pixel data referenced by the IIMAGE. You can load a bmp into memory using ISHELL_LoadResData and read/manipulate the raster info before converting to a device-dependent bitmap that you can then BITBLT.

In BREW v1.1, there's no way to get at the pixel data referenced by the IIMAGE. You can load a bmp into memory using ISHELL_LoadResData and read/manipulate the raster info before converting to a device-dependent bitmap that you can then BITBLT.

That's not entirely true. LoadResImage returns a pointer to the orignal Bitmap. That bitmap is device independent and a completely documented format, down to the pixel data, and it is completely compatible with the Windows BMP format.
What is not documented is the native bitmap format that you get after calling CONVERTBMP, which is the more important one of the two, sadly, becasue that is the ofrmat that allows speedy blitting while the device-independent BMP format is unusable for all but the most simple applications.

That's not entirely true. LoadResImage returns a pointer to the orignal Bitmap. That bitmap is device independent and a completely documented format, down to the pixel data, and it is completely compatible with the Windows BMP format.
What is not documented is the native bitmap format that you get after calling CONVERTBMP, which is the more important one of the two, sadly, becasue that is the ofrmat that allows speedy blitting while the device-independent BMP format is unusable for all but the most simple applications.