GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

to change the foreground color of pixmap.

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
kprasanna16
Familiar Face


Joined: 08 Dec 2006
Posts: 11

PostPosted: Fri Dec 22, 2006 11:40 am    Post subject: to change the foreground color of pixmap. Reply with quote

Hi.

I have created a pixmap using..

pixmap = gdk_pixmap_new (widget->window,
widget->allocation.width,
widget->allocation.height,
32);

and then tried to draw a pixbuf in this pixmap using..

gdk_pixbuf = gdk_pixbuf_new_from_file ("2.gif", NULL);
gdk_draw_pixbuf (pixmap, widget->style->black_gc, gdk_pixbuf, 0, 0, 20, 60, 150, 70, GDK_RGB_DITHER_NONE, 0, 0);

while running over DirectFB the foreground color of the pixmap is black for Depth=32 and Depth = 16.
for Depth= -1, 1 and 8 it is dark Blue..

I want to change the foreground color of the pixmap so that it doesn't depends upon Depth..

any idea..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP