public final class TiffFrame
extends com.aspose.imaging.RasterCachedImage
The tiff frame.
Constructor and Description |
---|
TiffFrame(InputStream stream)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(InputStream stream,
TiffOptions options)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(RasterImage image)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(RasterImage image,
TiffOptions options)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(com.aspose.ms.System.IO.Stream stream) |
TiffFrame(String path)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(String path,
TiffOptions options)
Initializes a new instance of the
TiffFrame class. |
TiffFrame(TiffOptions options,
int width,
int height)
Initializes a new instance of the
TiffFrame class. |
Modifier and Type | Method and Description |
---|---|
void |
alignResolutions()
Helper method to make horizontal and vertical resolutions equal.
|
static TiffFrame |
copyFrame(TiffFrame tiffFrame)
Copies the entire frame (duplicates).
|
static TiffFrame |
createFrameFrom(TiffFrame tiffFrame,
TiffOptions options)
Creates the frame from specified
tiffFrame using the specified options . |
static TiffFrame |
createInstance_internalized(TiffOptions options,
int width,
int height,
IRasterImageArgb32PixelLoader dataReader)
Creates the new instance of the
TiffFrame class. |
int |
getBitsPerPixel()
Gets the image bits per pixel count.
|
ExifData |
getExifData()
Gets or sets EXIF data from frame.
|
TiffOptions |
getFrameOptions()
Gets the frame create options.
|
int |
getHeight()
Gets the image height.
|
double |
getHorizontalResolution()
Gets or sets the horizontal resolution, in pixels per inch, of this
RasterImage . |
double |
getVerticalResolution()
Gets or sets the vertical resolution, in pixels per inch, of this
RasterImage . |
int |
getWidth()
Gets the image width.
|
XmpPacketWrapper |
getXmpData()
Gets or sets XMP data from frame.
|
static void |
save_internalized(RasterImage imageToLoadPixelsFrom,
TiffStreamWriter fileStream,
boolean isLastFrame,
TiffOptions frameOptions,
ExifData exifData,
XmpPacketWrapper xmpData,
Rectangle destImageBounds)
Save frame to stream
|
void |
setExifData(ExifData value)
Gets or sets EXIF data from frame.
|
void |
setHorizontalResolution(double value)
Gets or sets the horizontal resolution, in pixels per inch, of this
RasterImage . |
void |
setVerticalResolution(double value)
Gets or sets the vertical resolution, in pixels per inch, of this
RasterImage . |
void |
setXmpData(XmpPacketWrapper value)
Gets or sets XMP data from frame.
|
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, beginResize_internalized, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, getFormatSpecificPalette_internalized, grayscale, isCached, resize, resize, rotate, rotateFlip, setFormatSpecificPalette_internalized
crop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getPixel, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getTransparentColor, hasAlpha, hasTransparentColor, isRawDataAvailable, loadArgb32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, readScanLine, rotate, saveArgb32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setPalette, setPixel, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setTransparentColor, writeScanLine
canLoad, canLoad, canLoad, canLoad, canLoadInternal_internalized, canLoadInternal_internalized, canSave, create, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getFileFormatInternal_internalized, getFittingRectangle, getFittingRectangle, getPalette, getProportionalHeight, getProportionalWidth, getSize, getVentureLicense_internalized, hasBackgroundColor, load, load, load, load, loadInternal_internalized, loadInternal_internalized, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save_internalized, save, save, save, save, save, setBackgroundColor, setBackgroundColor, setContainer_internalized, setPalette, setVentureLicense_internalized
getDataStreamContainer, save_internalized, save, save, save, setDataStreamContainer
close, dispose, getDisposed
public TiffFrame(InputStream stream)
Initializes a new instance of the TiffFrame
class.
stream
- The stream to load an image from and initialize frame pixel and palette data with.public TiffFrame(com.aspose.ms.System.IO.Stream stream)
public TiffFrame(InputStream stream, TiffOptions options)
Initializes a new instance of the TiffFrame
class.
stream
- The stream to load an image from and initialize frame pixel and palette data with.options
- The options to use for the newly created frame.public TiffFrame(String path)
Initializes a new instance of the TiffFrame
class.
path
- The path to load an image from and initialize frame pixel and palette data with.public TiffFrame(String path, TiffOptions options)
Initializes a new instance of the TiffFrame
class.
path
- The path to load an image from and initialize frame pixel and palette data with.options
- The options to use for the newly created frame.public TiffFrame(RasterImage image)
Initializes a new instance of the TiffFrame
class.
image
- The image to initialize frame pixel and palette data with.public TiffFrame(RasterImage image, TiffOptions options)
Initializes a new instance of the TiffFrame
class.
image
- The image to initialize frame pixel and palette data with.options
- The options to use for the newly created frame.public TiffFrame(TiffOptions options, int width, int height)
Initializes a new instance of the TiffFrame
class.
options
- The frame options.width
- The width.height
- The height.com.aspose.ms.System.ArgumentNullException
- Options parameter is null.public XmpPacketWrapper getXmpData()
Gets or sets XMP data from frame.
Value: XMP packet data wrappergetXmpData
in class RasterImage
public void setXmpData(XmpPacketWrapper value)
Gets or sets XMP data from frame.
Value: XMP packet data wrappersetXmpData
in class RasterImage
public int getBitsPerPixel()
Gets the image bits per pixel count.
Value: The image bits per pixel count.getBitsPerPixel
in class Image
public TiffOptions getFrameOptions()
Gets the frame create options.
public int getHeight()
Gets the image height.
Value: The image height.getHeight
in interface IObjectWithBounds
getHeight
in class Image
public int getWidth()
Gets the image width.
Value: The image width.getWidth
in interface IObjectWithBounds
getWidth
in class Image
public ExifData getExifData()
Gets or sets EXIF data from frame.
Value: EXIF data containerpublic void setExifData(ExifData value)
Gets or sets EXIF data from frame.
Value: EXIF data containerpublic double getHorizontalResolution()
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage
.
getHorizontalResolution
in class RasterImage
public void setHorizontalResolution(double value)
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage
.
setHorizontalResolution
in class RasterImage
public double getVerticalResolution()
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage
.
getVerticalResolution
in class RasterImage
public void setVerticalResolution(double value)
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage
.
setVerticalResolution
in class RasterImage
public void alignResolutions()
Helper method to make horizontal and vertical resolutions equal.
public static TiffFrame copyFrame(TiffFrame tiffFrame)
Copies the entire frame (duplicates).
tiffFrame
- The tiff frame to copy.public static TiffFrame createFrameFrom(TiffFrame tiffFrame, TiffOptions options)
Creates the frame from specified tiffFrame
using the specified options
.
The pixel data is preserved but converted to the desired format.
tiffFrame
- The tiff frame to create from.options
- The new options to use.public static TiffFrame createInstance_internalized(TiffOptions options, int width, int height, IRasterImageArgb32PixelLoader dataReader)
Creates the new instance of the TiffFrame
class.
options
- The frame options.width
- The width.height
- The height.dataReader
- The frame data reader.TiffFrame
class.public static void save_internalized(RasterImage imageToLoadPixelsFrom, TiffStreamWriter fileStream, boolean isLastFrame, TiffOptions frameOptions, ExifData exifData, XmpPacketWrapper xmpData, Rectangle destImageBounds)
Save frame to stream
imageToLoadPixelsFrom
- The image to load pixels from.fileStream
- The file stream.isLastFrame
- if set to true
it is the last encoded frame.frameOptions
- The frame options.exifData
- EXIF data for framexmpData
- XMP data for framedestImageBounds
- The dest image bounds.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.