mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 13:59:18 +02:00
gtk intf: gdk_pixbuf_render_pixmap_and_mask creates the pixmap and mask itself
git-svn-id: trunk@21783 -
This commit is contained in:
parent
ac7c91e727
commit
d77de397b1
@ -726,13 +726,8 @@ begin
|
||||
gbBitmap: NewDrawable := GDIBitmapObject;
|
||||
gbPixbuf:
|
||||
begin
|
||||
NewDrawable := gdk_pixmap_new(nil,
|
||||
gdk_pixbuf_get_width(GDIPixbufObject),
|
||||
gdk_pixbuf_get_height(GDIPixbufObject),
|
||||
gdk_pixbuf_get_n_channels(GDIPixbufObject) * gdk_pixbuf_get_bits_per_sample(GDIPixbufObject));
|
||||
Mask := gdk_pixmap_new(nil,
|
||||
gdk_pixbuf_get_width(GDIPixbufObject),
|
||||
gdk_pixbuf_get_height(GDIPixbufObject), 1);
|
||||
NewDrawable := nil;
|
||||
Mask := nil;
|
||||
gdk_pixbuf_render_pixmap_and_mask(GDIPixbufObject, NewDrawable, Mask, $80);
|
||||
GDIBitmapType := gbPixmap;
|
||||
gdk_pixbuf_unref(GDIPixbufObject);
|
||||
|
Loading…
Reference in New Issue
Block a user