ThumbnailDevice
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice
public final class ThumbnailDevice extends ImageDevice
Represents image device that save pdf document pages into Thumbnail image.
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
processInternal(Page page, OutputStream output) | Converts the page into thumbnail image png and saves it in the output stream. |
processInternal(Page page, System.IO.Stream output) |
ThumbnailDevice()
public ThumbnailDevice()
Initializes a new instance of the ThumbnailDevice class with default size of thumbnail image (200x200 pixels).
ThumbnailDevice(int width, int height)
public ThumbnailDevice(int width, int height)
Initializes a new instance of the ThumbnailDevice class.
Parameters:
Parameter | Type | Description |
---|---|---|
width | int | Thumbnail image output width. |
height | int | Thumbnail image output height. |
processInternal(Page page, OutputStream output)
public void processInternal(Page page, OutputStream output)
Converts the page into thumbnail image png and saves it in the output stream.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | The page to convert. |
output | java.io.OutputStream | Output stream with png image. |
processInternal(Page page, System.IO.Stream output)
public void processInternal(Page page, System.IO.Stream output)
Performs some operation on the given page, e.g. converts page into graphic image.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | |
output | com.aspose.ms.System.IO.Stream |