public final class ImageArea extends Object
Provides an image area.
Constructor and Description |
---|
ImageArea(Rectangle rectangle,
InputStream imageStream,
String mediaType,
double rotation,
DocumentPage page)
Initializes a new instance of the
ImageArea class. |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes this text area from
Page . |
InputStream |
getBitmapStream()
Returns the image as bitmap data.
|
String |
getMediaType()
Gets a media type of the image.
|
DocumentPage |
getPage()
Gets a page which contains this image area.
|
InputStream |
getRawStream()
Returns the original image data.
|
Rectangle |
getRectangle()
Gets a rectangle of the image area.
|
double |
getRotation()
Gets a rotation of the image.
|
public ImageArea(Rectangle rectangle, InputStream imageStream, String mediaType, double rotation, DocumentPage page)
Initializes a new instance of the ImageArea
class.
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.public DocumentPage getPage()
Gets a page which contains this image area.
DocumentPage
class which contains this image area.public Rectangle getRectangle()
Gets a rectangle of the image area.
Rectangle
class.public double getRotation()
Gets a rotation of the image.
public String getMediaType()
Gets a media type of the image.
public InputStream getBitmapStream()
Returns the image as bitmap data.
public InputStream getRawStream()
Returns the original image data.
public void dispose()
Removes this text area from Page
.
Copyright © 2018. All rights reserved.