Hello,

I was wondering if anyone knew how to redraw after altering the pixel array in 
fltk, basically, I have:
..
Fl_JPEG_Image jpg("logo.jpg");
..
for(int i=0; i!=jpg.h()*jpg.w(); i++){
 ((uchar*)jpg.array)[3*i+1]=0;
 ((uchar*)jpg.array)[3*i+2]=0;
}
UI.ImageBox->set_changed();
UI.ImageBox->redraw();

I'm trying to only get the blue color to show up. I know that this change is 
registering, because when I do the desaturation, it gets darker when I first 
run it through this.

Any tips would be much appreciated!

Thanks.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to