AsposeImageContainer
Contents
[
Hide
]
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
public class AsposeImageContainer extends ContentPart
Constructors
Methods
AsposeImageContainer(byte[] data)
public AsposeImageContainer(byte[] data)
Parameters:
Parameter | Type | Description |
---|---|---|
data | byte[] |
AsposeImageContainer(System.IO.Stream stream)
public AsposeImageContainer(System.IO.Stream stream)
Parameters:
Parameter | Type | Description |
---|---|---|
stream | com.aspose.ms.System.IO.Stream |
AsposeImageContainer(Image image)
public AsposeImageContainer(Image image)
Parameters:
Parameter | Type | Description |
---|---|---|
image | com.aspose.imaging.Image |
AsposeImageContainer(int width, int height)
public AsposeImageContainer(int width, int height)
Parameters:
Parameter | Type | Description |
---|---|---|
width | int | |
height | int |
AsposeImageContainer(String filePath)
public AsposeImageContainer(String filePath)
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String |
getAsposeImage()
public final Image getAsposeImage()
Returns: com.aspose.imaging.Image
getStreamContainer()
public final StreamContainer getStreamContainer()
Returns: StreamContainer
getAsTiffImage()
public final TiffImage getAsTiffImage()
Returns: com.aspose.imaging.fileformats.tiff.TiffImage
getAsTiffFrame()
public final TiffFrame getAsTiffFrame()
Returns: com.aspose.imaging.fileformats.tiff.TiffFrame
isTiffImage()
public final boolean isTiffImage()
Returns: boolean
isTiffFrame()
public final boolean isTiffFrame()
Returns: boolean
getAsGifImage()
public final GifImage getAsGifImage()
Returns: com.aspose.imaging.fileformats.gif.GifImage
isGifImage()
public final boolean isGifImage()
Returns: boolean
isJpegImage()
public final boolean isJpegImage()
Returns: boolean
isBmpImage()
public final boolean isBmpImage()
Returns: boolean
isEmfImage()
public final boolean isEmfImage()
Returns: boolean
getAsRasterImage()
public final RasterImage getAsRasterImage()
Returns: com.aspose.imaging.RasterImage
getWidth()
public final int getWidth()
Returns: int
getHeight()
public final int getHeight()
Returns: int
getDisposed()
public final boolean getDisposed()
Returns: boolean
dispose()
public final void dispose()
Disposes the current instance.
getFileFormat(System.IO.Stream stream)
public static long getFileFormat(System.IO.Stream stream)
Parameters:
Parameter | Type | Description |
---|---|---|
stream | com.aspose.ms.System.IO.Stream |
Returns: long
getFileFormat(byte[] imageData)
public static long getFileFormat(byte[] imageData)
Parameters:
Parameter | Type | Description |
---|---|---|
imageData | byte[] |
Returns: long
checkWatermarkingLicenseRestrictions(Watermark watermark)
public void checkWatermarkingLicenseRestrictions(Watermark watermark)
Parameters:
Parameter | Type | Description |
---|---|---|
watermark | Watermark |
save()
public final void save()
save(String filePath, boolean overwrite)
public final void save(String filePath, boolean overwrite)
Parameters:
Parameter | Type | Description |
---|---|---|
filePath | java.lang.String | |
overwrite | boolean |
save(OutputStream stream)
public final void save(OutputStream stream)
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.OutputStream |
convert(ImageOptionsBase options)
public final AsposeImageContainer convert(ImageOptionsBase options)
Parameters:
Parameter | Type | Description |
---|---|---|
options | com.aspose.imaging.ImageOptionsBase |
Returns: AsposeImageContainer