pixbufGetFromSurface

Transfers image data from a cairo.surface.Surface and converts it to a gdkpixbuf.pixbuf.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 surface contains one.

More...

Parameters

surface cairo.surface.Surface

surface to copy from

srcX int

Source X coordinate within surface

srcY int

Source Y coordinate within surface

width int

Width in pixels of region to get

height int

Height in pixels of region to get

Return Value

Type: gdkpixbuf.pixbuf.Pixbuf

A newly-created pixbuf with a reference count of 1

Detailed Description

Deprecated: Use gdk.texture.Texture and subclasses instead cairo surfaces and pixbufs