void
setred (iImage * image, int x, int y, int red)
{
((csRGBpixel *) image->GetImageData ())[y * image->GetWidth () + x].red =
red;
}
csRef < iImage > xbut;
xbut =
loader->LoadImage ("/this/data/AWT/X.TGA",
CS_IMGFMT_TRUECOLOR | CS_IMGFMT_ALPHA);
setred(xbut,0,0,255); //This sets the 0,3 pixel to 255 red
setred(xbut,2,0,255); //This sets the 2,3 pixel to 255 red
setred(xbut,2,1,255); //This sets the 2,3 pixel to 255 red
setred(xbut,0,2,255); //This sets the 0,3 pixel to 255 red
setred(xbut,4,4,255); //This sets the 4,4 pixel to 255 red
This function worked properly in .98. Is there something I am missing in 1.1?
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.<<inline: X.TGA>>
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
