pixbufGetFromSurface
fun pixbufGetFromSurface( surface: <Error class: unknown class>, srcX: <Error class: unknown class>, srcY: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>): <Error class: unknown class>?(source)
⚠️ Deprecated ⚠️
This is deprecated since version 4.12.
Use class@Gdk.Texture and subclasses instead cairo surfaces and pixbufs
Transfers image data from a cairo_surface_t
and converts it to a GdkPixbuf
.
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.
Return
A newly-created pixbuf with a reference count of 1
Parameters
surface
surface to copy from
srcX
Source X coordinate within @surface
srcY
Source Y coordinate within @surface
width
Width in pixels of region to get
height
Height in pixels of region to get