Libraries:Gtk:Gdk:Bitmap
Types
T
Inherits from:Gtk.GObject.Object.T
Constants
Nil : T
Functions
CreateFromData(drawable @ Gtk.Gdk.Drawable.T, data @ Std.String.T, width @ Std.Integer.SmallT, height @ Std.Integer.SmallT) : Gtk.Gdk.Bitmap.T
Warning
CreateFromData has been deprecated since version 2.22 and should not be used in newly-written code. You can create a Cairo image surface using Gtk.Cairo.Surface.ImageSurfaceCreateForData instead. Specify Gtk.Cairo.Format.A1 as the format to get a bitmap. Keep in mind that Cairo images must have a rowstride of 4 bytes, so you will need to align your data properly. If you must use a pixmap, use gdk_pixmap_new() with a depth of 1 to create a bitmap and then use Gtk.Gdk.Cairo.Create, Gtk.Cairo.Cairo.SetSourceSurface and Gtk.Cairo.Cairo.Paint to draw the image surface to the bitmap.