# GimpUi.ZoomPreview.prototype.get_source

    function get_source(): [return_value: ByteArray, width: Number(gint), height: Number(gint), bpp: Number(gint)] {
        // Gjs wrapper for gimp_zoom_preview_get_source()
    }

Returns the scaled image data of the part of the drawable the GimpUi.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 GimpUi.ZoomPreview.

Since 2.4

return_value

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

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