ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearProcessing Class / CreateThumbnail Method
Source image from which the thumbnail is created.
Width of the thumbnail.
Height of the thumbnail.
Interpolation options.




In This Topic
    CreateThumbnail Method
    In This Topic
    Creates a thumbnail image according to the specified dimensions.
    Syntax
    'Declaration
     
    Public Shared Function CreateThumbnail( _
       ByVal page As ImGearPage, _
       ByVal width As Integer, _
       ByVal height As Integer, _
       ByVal options As ImGearInterpolationOptions _
    ) As ImGearPage
    'Usage
     
    Dim page As ImGearPage
    Dim width As Integer
    Dim height As Integer
    Dim options As ImGearInterpolationOptions
    Dim value As ImGearPage
     
    value = ImGearProcessing.CreateThumbnail(page, width, height, options)
    public static ImGearPage CreateThumbnail( 
       ImGearPage page,
       int width,
       int height,
       ImGearInterpolationOptions options
    )
    public: static ImGearPage* CreateThumbnail( 
       ImGearPage* page,
       int width,
       int height,
       ImGearInterpolationOptions* options
    ) 
    public:
    static ImGearPage^ CreateThumbnail( 
       ImGearPage^ page,
       int width,
       int height,
       ImGearInterpolationOptions^ options
    ) 

    Parameters

    page
    Source image from which the thumbnail is created.
    width
    Width of the thumbnail.
    height
    Height of the thumbnail.
    options
    Interpolation options.

    Return Value

    New thumbnail image.
    Remarks
    This method processes all channels of the image.

    Interpolation options depend on the color space and bit depth of the image. Grayscale, PreserveBlack and PreserveWhite interpolations are applicable only to 1 bit images.

    Average and Bilinear interpolations are not applicable to 1 bit images nor to images having a non-gray palette. Also, Bilinear interpolation cannot be applied to the images if one of the dimensions is decreased.

    Use ImGearProcessingVerifier.CanApplyCreateThumbnail method to check whether the operation can be performed.

    Example
    See Also