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

Developer

Forums

Forums:

Would someone please explain to me (bitmap amateur) how I can change the color or certain pixels in a bitmap?

I have a bitmap image that I have placed in my .bar file that is 8 pixels wide by 11 pixels tall. There are two colors I have used in the image.....Magenta (for transparancy) and Black for the image to display. One of the screens I use has a blue background and in this case I want to change the original bitmaps black pixels to white (or maybe some other color). I have read through the posts, but am more confused now then ever....

To originally draw the image is was doing the following:

pMe->m_pIImage = ISHELL_LoadResImage(pMe->a.m_pIShell, szResFile, MYIMAGE);
if(pMe->m_pIImage)
{
IIMAGE_GetInfo(pMe->m_pIImage, &aii1);
IIMAGE_SetParm( pMe->m_pIImage, IPARM_ROP, AEE_RO_TRANSPARENT, 0 );
IIMAGE_Draw(pMe->m_pIImage,x_pos,y_pos);
IIMAGE_Release (pMe->m_pIImage);

So what would one need to do to change all the pixels of one color into another and then draw the image to the screen?