This documentation is for the old version. Go to the latest Graphics Mill docs

IFrame.GetThumbnail Method

Returns thumbnail of the bitmap stored in this frame.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Sub GetThumbnail ( _
	bitmap As Bitmap, _
	width As Integer, _
	height As Integer _
)
C#
void GetThumbnail(
	Bitmap bitmap,
	int width,
	int height
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap class instance containing thumbnail stored in the frame.
width

Type: System.Int32

Thumbnail width (in pixels). If this value is set to 0, it is calculated automatically to preserve bitmap aspect ratio. Both width and height cannot be set to 0 at the same time.
height

Type: System.Int32

Thumbnail height (in pixels). If this value is set to 0, it is calculated automatically to preserve bitmap aspect ratio. Both width and height cannot be set to 0 at the same time.

Remarks

Thumbnail is generated for the bitmap stored inside frame. If no bitmap loaded yet (GetBitmap(Bitmap) was not previously called), this method creates a thumbnail from file "on-the-fly" (without loading entire bitmap into memory). If bitmap is already loaded with GetBitmap(Bitmap) or specified by SetBitmap(Bitmap) method, thumbnail is created for this image (actual content of file is not read).

See Also

Reference