hello i am trying to take an image.bmp display it and cycle threw it pixel by pixel using a loop like so
int width=dbBitmapWidth(0);
int height=dbBitmapHeight(0);
dbLoadImage("cow.bmp",1);
dbCenterText(320,240," COLOR SWAP!");
dbPasteImage(1,0,0,0);
DWORD pixelColor;
DWORD blue = dbRGB(0,0,255);
DWORD green = dbRGB(0,255,0);
DWORD red = dbRGB(255,0,0);
for (int y=0;y<width;y++)
{
for(int x=0;x<height;x++){
pixelColor=dbPoint(x,y);
if //////////////////////////im stuck right here
///////////////////////im not sure how to swap from the
//////////////////////RGB red value to its blue
////////////////////for example
////////////////////RGB value of (230, 100, 98)
/////////////////// The program would change
///////////////////////////it to (98, 100, 230)
and change it.....and im trying to stay away from sync...i want to keep this as simple as possible im trying to go step by step to learn all this stuff...thanks again!
p.s...im not to worried about how slow it is at this point