Converions of BCI Images to BMP | developer.brewmp.com Converions of BCI Images to BMP | developer.brewmp.com

Developer

Converions of BCI Images to BMP

Forums:

Hi,

We are planning to create phone screens using our internal tool. Right now our customer gives the input screens in BMP, but our code converts them to BCI and uses ISHELL_LoadRes API to load the BCI Images from a bar file. My question is

1. Is BCI is lossy compression , meaning when a BMP converted to BMP does the conversion change any of the pixel values.

2. How can we load/decode the BCI images in external applications ?

Pls let me know any inputs towards this.

Thanks
Chaitanya

Quote:1. Is BCI is lossy compression , meaning when a BMP converted to BMP does the conversion change any of the pixel values.
BCI is a lossless compression. The BCI conversion tool accepts a variety of input image formats (bmp, png and jpeg) and compresses it to its own BCI (Brew Compressed Image) format. It does not convert a BMP to another BMP. It converts a BMP to a BCI.
Quote:2. How can we load/decode the BCI images in external applications ?
There are many methods to load the bci file. If you stored your bci file in a resource file, use the ISHELL_LoadResImage() api to get an IImage pointer to your BCI file. Then use the IIMAGE functions to draw the image to the display area. The IIMAGE function handles the decoding.

Quote:1. Is BCI is lossy compression , meaning when a BMP converted to BMP does the conversion change any of the pixel values.
BCI is a lossless compression. The BCI conversion tool accepts a variety of input image formats (bmp, png and jpeg) and compresses it to its own BCI (Brew Compressed Image) format. It does not convert a BMP to another BMP. It converts a BMP to a BCI.
Quote:2. How can we load/decode the BCI images in external applications ?
There are many methods to load the bci file. If you stored your bci file in a resource file, use the ISHELL_LoadResImage() api to get an IImage pointer to your BCI file. Then use the IIMAGE functions to draw the image to the display area. The IIMAGE function handles the decoding.

Thank you very much for the response.
My 2nd question was, How can I get a decoder to decode the BCI images in my application/tool( which is developed in VC++) , i.e. do you have DLL or anything which I can import in VC++ and decode the BCI image ?

Thank you very much for the response.
My 2nd question was, How can I get a decoder to decode the BCI images in my application/tool( which is developed in VC++) , i.e. do you have DLL or anything which I can import in VC++ and decode the BCI image ?

The short answer is no, you cannot decode the BCI image outside of the BREW environment.

The short answer is no, you cannot decode the BCI image outside of the BREW environment.