TypeScript API Documentation for GDK
API Version: 4.0
Library Version: 4.0.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.40
Deprecated 4.12
Transfers image data from a cairo_surface_t and converts it to a GdkPixbuf.Pixbuf.
cairo_surface_t
This allows you to efficiently read individual pixels from cairo surfaces.
This function will create an RGB pixbuf with 8 bits per channel. The pixbuf will contain an alpha channel if the surface contains one.
surface
Deprecated
surface to copy from
Source X coordinate within surface
Source Y coordinate within surface
Width in pixels of region to get
Height in pixels of region to get
A newly-created pixbuf with a reference count of 1
since 4.12: Use Gdk.Texture and subclasses instead cairo surfaces and pixbufs
Transfers image data from a
cairo_surface_tand converts it to a GdkPixbuf.Pixbuf.This allows you to efficiently read individual pixels from cairo surfaces.
This function will create an RGB pixbuf with 8 bits per channel. The pixbuf will contain an alpha channel if the
surfacecontains one.