ImageGear for Java
createThumbnail Method
Source image from which the thumbnail is created.
Width of the thumbnail.
Height of the thumbnail.
Interpolation options.
Creates a thumbnail image according to the specified dimensions.
Syntax
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.

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.

com.accusoft.imagegear.core.ImGearRasterPageT:com.accusoft.imagegear.core.ImGearPage

See Also

Reference

ImGearProcessing Class
ImGearProcessing Members

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback