BmpDevice

Inheritance: java.lang.Object, com.aspose.pdf.devices.Device, com.aspose.pdf.devices.PageDevice, com.aspose.pdf.devices.ImageDevice

public final class BmpDevice extends ImageDevice

Represents image device that helps to save pdf document pages into bmp.

Constructors

ConstructorDescription
BmpDevice()Initializes a new instance of the BmpDevice class with default resolution.
BmpDevice(Resolution resolution)Initializes a new instance of the BmpDevice class.
BmpDevice(int width, int height, Resolution resolution)Initializes a new instance of the BmpDevice class with provided image dimensions and resolution.
BmpDevice(PageSize pageSize, Resolution resolution)Initializes a new instance of the BmpDevice class with provided page size and resolution.
BmpDevice(int width, int height)Initializes a new instance of the BmpDevice class with provided image dimensions, default resolution (=150).
BmpDevice(PageSize pageSize)Initializes a new instance of the BmpDevice class with provided page size, default resolution (=150).

Methods

MethodDescription
processInternal(Page page, System.IO.Stream output)For Internal usage only!
process(Page page, OutputStream output)Converts the page into bmp and saves it in the output stream.
process(Page page, System.Drawing.Graphics gr)renders page on the graphics

BmpDevice()

public BmpDevice()

Initializes a new instance of the BmpDevice class with default resolution.

BmpDevice(Resolution resolution)

public BmpDevice(Resolution resolution)

Initializes a new instance of the BmpDevice class.

Parameters:

ParameterTypeDescription
resolutionResolutionResolution for the result image file, see Resolution class.

BmpDevice(int width, int height, Resolution resolution)

public BmpDevice(int width, int height, Resolution resolution)

Initializes a new instance of the BmpDevice class with provided image dimensions and resolution.

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.
resolutionResolutionResolution for the result image file, see Resolution class.

BmpDevice(PageSize pageSize, Resolution resolution)

public BmpDevice(PageSize pageSize, Resolution resolution)

Initializes a new instance of the BmpDevice class with provided page size and resolution.

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.
resolutionResolutionResolution for the result image file, see Resolution class.

BmpDevice(int width, int height)

public BmpDevice(int width, int height)

Initializes a new instance of the BmpDevice class with provided image dimensions, default resolution (=150).

Parameters:

ParameterTypeDescription
widthintImage output width.
heightintImage output height.

BmpDevice(PageSize pageSize)

public BmpDevice(PageSize pageSize)

Initializes a new instance of the BmpDevice class with provided page size, default resolution (=150).

Parameters:

ParameterTypeDescription
pageSizePageSizePage size of the output image.

processInternal(Page page, System.IO.Stream output)

public void processInternal(Page page, System.IO.Stream output)

For Internal usage only!

Converts the page into bmp and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputcom.aspose.ms.System.IO.StreamOutput stream with bmp image.

process(Page page, OutputStream output)

public void process(Page page, OutputStream output)

Converts the page into bmp and saves it in the output stream.

Parameters:

ParameterTypeDescription
pagePageThe page to convert.
outputjava.io.OutputStreamOutput stream with bmp image.

process(Page page, System.Drawing.Graphics gr)

public void process(Page page, System.Drawing.Graphics gr)

renders page on the graphics

Parameters:

ParameterTypeDescription
pagePagePage object
grcom.aspose.ms.System.Drawing.Graphicsinternal object