gimp-drawable-sub-thumbnail

Michael Natterer <mitch@gimp.org>

Description

Get a thumbnail of a sub-area of a drawable drawable.

Help

This function gets data from which a thumbnail of a drawable preview can be created. Maximum x or y dimension is 1024 pixels. The pixels are returned in RGB[A] or GRAY[A] format. The bpp return value gives the number of bytes in the image.


Type

unknown

Parameters

Type Name Description
PF_DRAWABLE drawable The drawable
PF_INT src-x The x coordinate of the area (src-x >= 0)
PF_INT src-y The y coordinate of the area (src-y >= 0)
PF_INT src-width The width of the area (src-width >= 1)
PF_INT src-height The height of the area (src-height >= 1)
PF_INT dest-width The thumbnail width (1 <= dest-width <= 1024)
PF_INT dest-height The thumbnail height (1 <= dest-height <= 1024)

Return

Type Name Description
PF_INT width The previews width
PF_INT height The previews height
PF_INT bpp The previews bpp
PF_INT thumbnail-data-count The number of bytes in thumbnail data (thumbnail-data-count >= 0)
unknown thumbnail-data The thumbnail data