public final class BmpDevice extends ImageDevice
Represents image device that helps to save pdf document pages into bmp.
Constructor and Description |
---|
BmpDevice()
Initializes a new instance of the
BmpDevice class with default resolution. |
BmpDevice(int width,
int height)
Initializes a new instance of the
BmpDevice class with provided image dimensions,
default resolution (=150). |
BmpDevice(int width,
int height,
Resolution resolution)
Initializes a new instance of the
BmpDevice class with provided image dimensions and
resolution. |
BmpDevice(PageSize pageSize)
Initializes a new instance of the
BmpDevice class with provided page size, default
resolution (=150). |
BmpDevice(PageSize pageSize,
Resolution resolution)
Initializes a new instance of the
BmpDevice class with provided page size and
resolution. |
BmpDevice(Resolution resolution)
Initializes a new instance of the
BmpDevice class. |
Modifier and Type | Method and Description |
---|---|
void |
process(Page page,
com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
|
void |
process(Page page,
OutputStream output)
Converts the page into bmp and saves it in the output stream.
|
void |
processInternal(Page page,
com.aspose.ms.System.IO.Stream output)
For Internal usage only!
|
getCoordinateType, getCropRectangle, getFormPresentationMode, getHeight, getRenderingOptions, getResolution, getWidth, isShadingPerformanceHigh, setCoordinateType, setCropRectangle, setFormPresentationMode, setRenderingOptions, setShadingPerformanceHigh
process
public BmpDevice()
Initializes a new instance of the BmpDevice
class with default resolution.
public BmpDevice(Resolution resolution)
Initializes a new instance of the BmpDevice
class.
resolution
- Resolution for the result image file, see Resolution
class.public BmpDevice(int width, int height, Resolution resolution)
Initializes a new instance of the BmpDevice
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 BmpDevice(PageSize pageSize, Resolution resolution)
Initializes a new instance of the BmpDevice
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 BmpDevice(int width, int height)
Initializes a new instance of the BmpDevice
class with provided image dimensions,
default resolution (=150).
width
- Image output width.height
- Image output height.public BmpDevice(PageSize pageSize)
Initializes a new instance of the BmpDevice
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 bmp and saves it in the output stream.
processInternal
in class PageDevice
page
- The page to convert.output
- Output stream with bmp image.public void process(Page page, OutputStream output)
Converts the page into bmp and saves it in the output stream.
process
in class PageDevice
page
- The page to convert.output
- Output stream with bmp image.public void process(Page page, com.aspose.ms.System.Drawing.Graphics gr)
renders page on the graphics
process
in class PageDevice
page
- Page objectgr
- internal object