Function gdk4::pixbuf_get_from_texture[][src]

pub fn pixbuf_get_from_texture(texture: &impl IsA<Texture>) -> Option<Pixbuf>
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.

texture

a Texture

Returns

a new gdk_pixbuf::Pixbuf