public final class TiffFrame extends RasterCachedImage
The tiff frame.
RasterCachedImage.RotateTestMode
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. |
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 . |
Color |
getBackgroundColor()
Gets or sets a value for the background color.
|
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.
|
boolean |
hasAlpha()
Gets a value indicating whether this instance has alpha.
|
boolean |
hasTransparentColor()
Gets a value indicating whether image has transparent color.
|
void |
setBackgroundColor(Color value)
Gets or sets a value for the background color.
|
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 |
setTransparentColor(boolean value)
Gets a value indicating whether image has transparent color.
|
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, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, getMaxAllowedAllocationForPartialRotateSave, getRotateMode, grayscale, isCached, resize, resize, rotate, rotateFlip, setMaxAllowedAllocationForPartialRotateSave, setRotateMode
crop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getImageOpacity, getModifyDate, getPixel, getPremultiplyComponents, getRawCustomColorConverter, getRawDataFormat, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getRawLineSize, getTransparentColor, getUpdateXmpData, getUseRawData, isRawDataAvailable, loadArgb32Pixels, loadCmyk32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, loadRawData, readArgb32ScanLine, readScanLine, replaceColor, replaceColor, replaceNonTransparentColors, replaceNonTransparentColors, rotate, saveArgb32Pixels, saveCmyk32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setPalette, setPixel, setPremultiplyComponents, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setUpdateXmpData, setUseRawData, toBitmap, writeArgb32ScanLine, writeScanLine
canLoad, canLoad, canLoad, canLoad, canSave, create, getBounds, getContainer, getDefaultOptions, getFileFormat, getFileFormat, getFileFormat, getFittingRectangle, getFittingRectangle, getInterruptMonitor, getOriginalOptions, getPalette, getProportionalHeight, getProportionalWidth, getSize, hasBackgroundColor, isAutoAdjustPalette, load, load, load, load, load, load, resize, resizeHeightProportionally, resizeHeightProportionally, resizeHeightProportionally, resizeWidthProportionally, resizeWidthProportionally, resizeWidthProportionally, save, save, save, save, save, save, save, setAutoAdjustPalette, setBackgroundColor, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, save
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(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 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 Color getBackgroundColor()
Gets or sets a value for the background color.
getBackgroundColor
in class Image
public void setBackgroundColor(Color value)
Gets or sets a value for the background color.
setBackgroundColor
in class Image
public boolean hasAlpha()
Gets a value indicating whether this instance has alpha.
hasAlpha
in class RasterImage
true
if this instance has alpha; otherwise, false
.public boolean hasTransparentColor()
Gets a value indicating whether image has transparent color.
hasTransparentColor
in class RasterImage
public void setTransparentColor(boolean value)
Gets a value indicating whether image has transparent color.
setTransparentColor
in class RasterImage
public XmpPacketWrapper getXmpData()
Gets or sets XMP data from frame.
getXmpData
in class RasterImage
public void setXmpData(XmpPacketWrapper value)
Gets or sets XMP data from frame.
setXmpData
in class RasterImage
value
- XMP packet data wrapperpublic int getBitsPerPixel()
Gets 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.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
public int getWidth()
Gets the image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
public ExifData getExifData()
Gets or sets EXIF data from frame.
public 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
value
- The horizontal resolution.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
value
- The vertical resolution.public void alignResolutions()
Helper method to make horizontal and vertical resolutions equal.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.