get_pixbuf


Description:

[ Version ( deprecated = true , deprecated_since = "2.58." ) ]
public Pixbuf? get_pixbuf ()

Warning: get_pixbuf is deprecated since 2.58..

Returns the pixbuf loaded by this.

Note:

Use [method@Rsvg.Handle.get_pixbuf_and_error].

The pixbuf returned will be reffed, so the caller of this function must assume that ref.

API ordering: This function must be called on a fully-loaded this. See the section "[API ordering]( class.Handle.html#api-ordering)" for details.

This function depends on the [class@Rsvg.Handle]'s dots-per-inch value (DPI) to compute the "natural size" of the document in pixels, so you should call [method@Rsvg.Handle.set_dpi] beforehand.

Parameters:

this

An [class@Rsvg.Handle]

Returns:

A pixbuf, or null on error during rendering.