Image::GetThumbnailImage Method (Int32, Int32, Image::GetThumbnailImageAbort^, IntPtr)
Returns a thumbnail for this Image.
Assembly: System.Drawing (in System.Drawing.dll)
public: Image^ GetThumbnailImage( int thumbWidth, int thumbHeight, Image::GetThumbnailImageAbort^ callback, IntPtr callbackData )
The width, in pixels, of the requested thumbnail image.
The height, in pixels, of the requested thumbnail image.
A Image::GetThumbnailImageAbort delegate.
Note You must create a delegate and pass a reference to the delegate as the callback parameter, but the delegate is not used.
If the Image contains an embedded thumbnail image, this method retrieves the embedded thumbnail and scales it to the requested size. If the Image does not contain an embedded thumbnail image, this method creates a thumbnail image by scaling the main image.
The 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 DrawImage method.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
Available since 1.1