public final class ThumbnailDevice extends ImageDevice
Represents image device that save pdf document pages into Thumbnail image.
Constructor and Description |
---|
ThumbnailDevice()
Initializes a new instance of the
ThumbnailDevice class
with default size of thumbnail image (200x200 pixels). |
ThumbnailDevice(int width,
int height)
Initializes a new instance of the
ThumbnailDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
processInternal(Page page,
OutputStream output)
Converts the page into thumbnail image png and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Performs some operation on the given page, e.g. converts page into graphic image.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process, process
public ThumbnailDevice()
Initializes a new instance of the ThumbnailDevice
class
with default size of thumbnail image (200x200 pixels).
public ThumbnailDevice(int width, int height)
Initializes a new instance of the ThumbnailDevice
class.
width
- Thumbnail image output width.height
- Thumbnail image output height.public void processInternal(Page page, OutputStream output)
Converts the page into thumbnail image png and saves it in the output stream.
page
- The page to convert.output
- Output stream with png image.public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
PageDevice
Performs some operation on the given page, e.g. converts page into graphic image.
processInternal
in class PageDevice
page
- The page to process.output
- This stream contains the results of processing.