Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Documentation is very sparse for using BREW Compressed Image (.BCI) files from an app. Does anyone know how to use these once a .BCI is created by the BCI Authoring Tool?

Thank you.

-- Bob
One Man Band
http://www.onemanband.com

when loading it from a resource file, you can use like you would use a .bmp file with no problems...

when loading it from a resource file, you can use like you would use a .bmp file with no problems...

That's not entirely accurate, as I've tried 2 ways to load an image from a resource file (ISHELL_LoadResData() and ISHELL_LoadResImage()) and neither one works. I suspect the problem is what to do with the IImage pointer after either of those routines returns to convert it to a DIB. What do you pass to CONVERTBMP()?
-- Bob
One Man Band
http://www.onemanband.com

That's not entirely accurate, as I've tried 2 ways to load an image from a resource file (ISHELL_LoadResData() and ISHELL_LoadResImage()) and neither one works. I suspect the problem is what to do with the IImage pointer after either of those routines returns to convert it to a DIB. What do you pass to CONVERTBMP()?
-- Bob
One Man Band
http://www.onemanband.com

well, first of all don´t use CONVERTBMP()..just ISHELL_LoadResImage() is enough, it returns an IImage *..
use it to pass to IIMAGE_Draw() or IIMAGE_Start(), and that´s it.
[]´s
Marcel

well, first of all don´t use CONVERTBMP()..just ISHELL_LoadResImage() is enough, it returns an IImage *..
use it to pass to IIMAGE_Draw() or IIMAGE_Start(), and that´s it.
[]´s
Marcel

BCI is an encoded image. Please refer to the following post:
http://brewforums.qualcomm.com/showthread.php?s=&postid=4373#post4372

BCI is an encoded image. Please refer to the following post:
http://brewforums.qualcomm.com/showthread.php?s=&postid=4373#post4372