Returns a thumbnail for this TransparentBitmap.
| C# | Visual Basic |
public TransparentBitmap GetThumbnailImage( int width, int height )
Public Function GetThumbnailImage ( _ width As Integer, _ height As Integer _ ) As TransparentBitmap
A TransparentBitmap that represents the thumbnail.
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.