public final class GifDevice extends ImageDevice
Represents image device that helps to save pdf document pages into gif.
Constructor and Description |
---|
GifDevice()
Initializes a new instance of the
GifDevice class with default resolution. |
GifDevice(int width,
int height)
Initializes a new instance of the
GifDevice class with provided image dimensions,
default resolution (=150). |
GifDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
GifDevice class with provided image dimensions and
resolution. |
GifDevice(PageSize pageSize)
Initializes a new instance of the
GifDevice class with provided page size, default
resolution (=150). |
GifDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
GifDevice class with provided page size and
resolution. |
GifDevice(Resolution resolution)
Initializes a new instance of the
GifDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
process(Page page,
OutputStream output)
Converts the page into gif and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
Converts the page into gif and saves it in the output stream.
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process, process
public GifDevice()
Initializes a new instance of the GifDevice
class with default resolution.
public GifDevice(Resolution resolution)
Initializes a new instance of the GifDevice
class.
resolution
- Resolution for the result image file, see Resolution
class.public GifDevice(int width, int height, Resolution resolution)
Initializes a new instance of the GifDevice
class with provided image dimensions and
resolution.
width
- Image output width.height
- Image output height.resolution
- Resolution for the result image file, see Resolution
class.public GifDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the GifDevice
class with provided page size and
resolution.
pageSize
- Page size of the output image.resolution
- Resolution for the result image file, see Resolution
class.public GifDevice(int width, int height)
Initializes a new instance of the GifDevice
class with provided image dimensions,
default resolution (=150).
width
- Image output width.height
- Image output height.public GifDevice(PageSize pageSize)
Initializes a new instance of the GifDevice
class with provided page size, default
resolution (=150).
pageSize
- Page size of the output image.public void processInternal(Page page, com.aspose.ms.System.IO.Stream output)
Converts the page into gif and saves it in the output stream.
processInternal
in class PageDevice
page
- The page to convert.output
- Output stream with gif image.public void process(Page page, OutputStream output)
Converts the page into gif and saves it in the output stream.
process
in class PageDevice
page
- The page to convert.output
- Output stream with gif image.