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(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. |
TiffFrame(TiffOptions options,
int width,
int height,
IRasterImageArgb32PixelLoader dataReader)
Initializes a new instance of the
TiffFrame class. |
Modifier and Type | Method and Description |
---|---|
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 . |
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.
|
static void |
save_internalized(RasterImage imageToLoadPixelsFrom,
TiffStreamWriter fileStream,
boolean isLastFrame,
TiffOptions frameOptions,
ExifData exifData,
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 . |
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, beginResize_internalized, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, grayscale, isCached, resize, rotate, rotateFlip
crop, dither, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getPixel, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getTransparentColor, 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, canSave, create, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getPalette, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, load, load, load, load, loadInternal_internalized, resize, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, save_internalized, save_internalized, save, save, save, save, save, setBackgroundColor, setBackgroundColor, setContainer_internalized, setPalette
getDataStreamContainer, save_internalized, save, save, save, setDataStreamContainer
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(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 TiffFrame(TiffOptions options, int width, int height, IRasterImageArgb32PixelLoader dataReader)
Initializes a new instance of the TiffFrame
class.
options
- The frame options.width
- The width.height
- The height.dataReader
- The frame data reader.com.aspose.ms.System.ArgumentNullException
- Options is null.public double getVerticalResolution()
RasterImage
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage
.
Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.
getVerticalResolution
in class RasterImage
public void setHorizontalResolution(double value)
RasterImage
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage
.
Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.
setHorizontalResolution
in class RasterImage
public void setVerticalResolution(double value)
RasterImage
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage
.
Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.
setVerticalResolution
in class RasterImage
public double getHorizontalResolution()
RasterImage
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage
.
Note by default this value is always 96 since different platforms cannot return the screen resolution. You may consider using the SetResolution method for updating both resolution values in single call.
getHorizontalResolution
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 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 void save_internalized(RasterImage imageToLoadPixelsFrom, TiffStreamWriter fileStream, boolean isLastFrame, TiffOptions frameOptions, ExifData exifData, 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 framedestImageBounds
- The dest image bounds.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.