public class ImageContent extends Content
Learn more:
| Constructor and Description |
|---|
ImageContent(StreamContainer stream,
StrategyManager<Integer> strategyManager,
FileType fileType,
ImageLoadOptions imageLoadOptions,
WatermarkerSettings watermarkerSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Watermark watermark,
WatermarkOptions options) |
protected void |
dispose(boolean disposing)
Releases all resources used by the
ImageContent |
void |
generatePreview(PreviewOptions previewOptions) |
AsposeImageContainer |
getAsposeImageContainer()
Gets underlying
GroupDocs.Watermark.Internal.AsposeImageContainer. |
IDocumentInfo |
getDocumentInfo() |
FileType |
getFileType() |
int |
getHeight()
Gets the height of this
in pixels. |
int |
getWidth()
Gets the width of this
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.
|
void |
performSave(String filePath) |
void |
performSave(String filePath,
SaveOptions saveOptions) |
close, dispose, getInfo, getInfo, getSearchableObjects, getStream, getWatermarkerSettings, registerDisposableResource, save, save, save, save, setSearchableObjectsaddWatermark, afterWatermarkAdding, checkWatermarkingLicenseRestrictions, findImages, findImages, getParts, getSearchWatermarksInParts, getStrategyManager, getTopParent, search, search, setParts, tryGetWatermarkerSettingspublic ImageContent(StreamContainer stream, StrategyManager<Integer> strategyManager, FileType fileType, ImageLoadOptions imageLoadOptions, WatermarkerSettings watermarkerSettings)
public void add(Watermark watermark, WatermarkOptions options)
protected void dispose(boolean disposing)
Releases all resources used by the ImageContent
public void generatePreview(PreviewOptions previewOptions)
generatePreview in class Contentpublic final AsposeImageContainer getAsposeImageContainer()
Gets underlying GroupDocs.Watermark.Internal.AsposeImageContainer.
public IDocumentInfo getDocumentInfo()
getDocumentInfo in class Contentpublic FileType getFileType()
getFileType in class Contentpublic final int getHeight()
ImageContent in pixels.
Returns the height of the active frame for a multiframe image.
ImageContent in pixels.public final int getWidth()
ImageContent in pixels.
Returns the width of the active frame for a multiframe image.
ImageContent in pixels.public void performSave(OutputStream stream)
Saves the content to the specified stream.
performSave in class Contentpublic void performSave(OutputStream stream, SaveOptions saveOptions)
Saves the content to the specified stream.
performSave in class Contentstream - The stream to save the content data to.saveOptions - The options tha should be used when saving the content data.public void performSave(String filePath)
performSave in class Contentpublic void performSave(String filePath, SaveOptions saveOptions)
performSave in class ContentCopyright © 2026. All rights reserved.