In The Hand LtdIn The Hand
GetThumbnailImage Method (width, height)
NamespacesInTheHand.DrawingTransparentBitmapGetThumbnailImage(Int32, Int32)
.NET Components for Mobility
Returns a thumbnail for this TransparentBitmap.
Declaration Syntax
C#Visual Basic
public TransparentBitmap GetThumbnailImage(
	int width,
	int height
)
Public Function GetThumbnailImage ( _
	width As Integer, _
	height As Integer _
) As TransparentBitmap
Parameters
width (Int32)
The width, in pixels, of the requested thumbnail image.
height (Int32)
The height, in pixels, of the requested thumbnail image.
Return Value
A TransparentBitmap that represents the thumbnail.
Remarks
If the TransparentBitmap contains an embedded thumbnail image, this method retrieves the embedded thumbnail and scales it to the requested size. If the TransparentBitmap does not contain an embedded thumbnail image, this method creates a thumbnail image by scaling the main image.

The GetThumbnailImage(Int32, Int32) method works well when the requested thumbnail image has a size of about 120 x 120 pixels. If you request a large thumbnail image (for example, 300 x 300) from an Image that has an embedded thumbnail, there could be a noticeable loss of quality in the thumbnail image. It might be better to scale the main image (instead of scaling the embedded thumbnail) by calling the Draw(Graphics, Rectangle) method.

Assembly: InTheHand.Drawing (Module: InTheHand.Drawing) Version: 7.0.0.0