public class ImageContent extends Content
Represents an image where a watermark can be placed.
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of this
ImageContent in pixels. |
int |
getWidth()
Gets the width of this
ImageContent in pixels. |
void |
performSave(OutputStream stream)
Saves the content to the specified stream.
|
void |
performSave(OutputStream stream,
SaveOptions saveOptions)
Saves the content to the specified stream.
|
findImages, findImages, search, search
public final int getHeight()
Gets the height of this ImageContent
in pixels.
ImageContent
in pixels.
Returns the height of the active frame for a multiframe image.public final int getWidth()
Gets the width of this ImageContent
in pixels.
ImageContent
in pixels.
Returns the width of the active frame for a multiframe image.public void performSave(OutputStream stream)
Saves the content to the specified stream.
performSave
in class Content
public void performSave(OutputStream stream, SaveOptions saveOptions)
Saves the content to the specified stream.
performSave
in class Content
stream
- The stream to save the content data to.saveOptions
- The options tha should be used when saving the content data.Copyright © 2020. All rights reserved.