com.aspose.pdf.devices

Class BmpDevice



  • public final class BmpDevice
    extends ImageDevice

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

    • Constructor Detail

      • BmpDevice

        public BmpDevice()

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

      • BmpDevice

        public BmpDevice(Resolution resolution)

        Initializes a new instance of the BmpDevice class.

        Parameters:
        resolution - Resolution for the result image file, see Resolution class.
      • BmpDevice

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

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

        Parameters:
        width - Image output width.
        height - Image output height.
        resolution - Resolution for the result image file, see Resolution class.
      • BmpDevice

        public BmpDevice(PageSize pageSize,
                         Resolution resolution)

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

        Parameters:
        pageSize - Page size of the output image.
        resolution - Resolution for the result image file, see Resolution class.
      • BmpDevice

        public BmpDevice(int width,
                         int height)

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

        Parameters:
        width - Image output width.
        height - Image output height.
      • BmpDevice

        public BmpDevice(PageSize pageSize)

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

        Parameters:
        pageSize - Page size of the output image.
    • Method Detail

      • processInternal

        public void processInternal(Page page,
                                    com.aspose.ms.System.IO.Stream output)
        For Internal usage only!

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

        Specified by:
        processInternal in class PageDevice
        Parameters:
        page - The page to convert.
        output - Output stream with bmp image.
      • process

        public void process(Page page,
                            OutputStream output)

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

        Overrides:
        process in class PageDevice
        Parameters:
        page - The page to convert.
        output - Output stream with bmp image.
      • process

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

        renders page on the graphics

        Overrides:
        process in class PageDevice
        Parameters:
        page - Page object
        gr - internal object