com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ImageArea



  • public final class ImageArea
    extends Object

    Provides an image area.

    • Constructor Detail

      • ImageArea

        public ImageArea(Rectangle rectangle,
                 InputStream imageStream,
                 String mediaType,
                 double rotation,
                 DocumentPage page)

        Initializes a new instance of the ImageArea class.

        Parameters:
        rectangle - A rectangle of the text area.
        imageStream - A stream with the image.
        mediaType - A media type of the image.
        rotation - A rotation of the image.
        page - An instance of DocumentPage class where this object is added.
    • Method Detail

      • getPage

        public DocumentPage getPage()

        Gets a page which contains this image area.

        Returns:
        An instance ofDocumentPage class which contains this image area.
      • getRectangle

        public Rectangle getRectangle()

        Gets a rectangle of the image area.

        Returns:
        An instance of Rectangle class.
      • getRotation

        public double getRotation()

        Gets a rotation of the image.

        Returns:
        A double value that represents an angle of rotation.
      • getMediaType

        public String getMediaType()

        Gets a media type of the image.

        Returns:
        A string value that represents a media type of the image.
      • getBitmapStream

        public InputStream getBitmapStream()

        Returns the image as bitmap data.

        Returns:
        A stream object with bitmap data of the original image.
      • getRawStream

        public InputStream getRawStream()

        Returns the original image data.

        Returns:
        A stream object with the original image data.
      • dispose

        public void dispose()

        Removes this text area from Page.