gdk4

Function pixbuf_get_from_texture

Source
pub fn pixbuf_get_from_texture(texture: &impl IsA<Texture>) -> Option<Pixbuf>
👎Deprecated: Since 4.12
Expand description

Creates a new pixbuf from @texture.

This should generally not be used in newly written code as later stages will almost certainly convert the pixbuf back into a texture to draw it on screen.

§Deprecated since 4.12

Use Texture and subclasses instead cairo surfaces and pixbufs

§texture

a Texture

§Returns

a new gdk_pixbuf::Pixbuf