get_source


Description:

[ CCode ( array_length = false , cname = "gimp_zoom_preview_get_source" ) ]
[ Version ( since = "2.4" ) ]
public uint8[] get_source (out int width, out int height, out int bpp)

Returns the scaled image data of the part of the drawable the ZoomPreview is currently showing, as a newly allocated array of guchar.

This function also allow to get the current width, height and bpp of the ZoomPreview .

Parameters:

this

a ZoomPreview widget

width

a pointer to an int where the current width of the zoom widget will be put.

height

a pointer to an int where the current width of the zoom widget will be put.

bpp

return location for the number of bytes per pixel

Returns:

newly allocated data that should be released using g_free when it is not any longer needed