kprasanna16 Familiar Face
Joined: 08 Dec 2006 Posts: 11
|
Posted: Fri Dec 22, 2006 11:40 am Post subject: to change the foreground color of pixmap. |
|
|
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.. |
|