(no subject)



Hi
I'm new to Gtk.
I'm trying to change the brightness of an image. I get the pixbuf of the image using
testPixbuf=gtk_image_get_pixbuf(testImage);
then I use
testPixbuftemp=gdk_pixbuf_add_alpha(testPixbuf,TRUE,r,g,b); to change the brightness.
I set the image from pixbuf using
gtk_image_set_from_pixbuf(testImage,testPixbuftemp);
I show the image using
gtk_widget_show(testImage);
I'm not able to change the Brightness of the image.if r,g,b= 255 then all the white pixels in the image turns 
transparent other than that on any other value of r,g,b i get no change in the image.

Please help.

Thanks & Regards,
Anne 


-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]