I want to find out all pixels which are white color in a bitmap,and change their color to 0x00ff00ff.I use these codes as below,but I still cant change their color.I dont konw why.
TUint32* piaddress = iBitmaptest->DataAddress();
TSize tsize = iBitmaptest->SizeInPixels();
TBitmapUtil bitmaptestutil(iBitmaptest);
bitmaptestutil.Begin(TPoint(0,0));
TInt xPos,yPos;
for(yPos=0;yPos<tsize.iHeight;yPos++)
{
bitmaptestutil.SetPos(TPoint(0,yPos));
for(xPos=0;xPos<tsize.iWidth;xPos++)
{
if(0x00ffffff==bitmaptestutil.GetPixel())
{
bitmaptestutil.SetPixel(0x00ff00ff); bitmaptestutil.IncXPos();

}
bitmaptestutil.IncXPos();
}
}
bitmaptestutil.End();