public final class Jpeg2000Image extends RasterCachedImage
Jpeg2000 library main class
RasterCachedImage.RotateTestMode
Constructor and Description |
---|
Jpeg2000Image(InputStream stream)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(InputStream stream,
int bitsPerPixel)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(int width,
int height)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(int width,
int height,
int bitsCount)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(int width,
int height,
Jpeg2000Options options)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(RasterImage image)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(RasterImage rasterImage,
int bitsPerPixel)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(String path)
Initializes a new instance of the
Jpeg2000Image class. |
Jpeg2000Image(String path,
int bitsPerPixel)
Initializes a new instance of the
Jpeg2000Image class. |
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerPixel()
Gets image depth (bits per pixel)
|
int |
getCodec()
Gets the codec.
|
String[] |
getComments()
Gets or sets the comments.
|
long |
getFileFormat()
Gets a value of file format
|
int |
getHeight()
Gets the image height
|
double |
getHorizontalResolution()
Gets or sets the horizontal resolution, in pixels per inch, of this
RasterImage . |
PixelDataFormat |
getRawDataFormat()
Gets the raw data format.
|
int |
getRawLineSize()
Gets the raw line size in bytes.
|
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 the XMP metadata.
|
void |
setComments(String[] value)
Gets or sets the comments.
|
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 the XMP metadata.
|
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, binarizeBradley, 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, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getTransparentColor, getUpdateXmpData, getUseRawData, hasAlpha, hasTransparentColor, isRawDataAvailable, loadArgb32Pixels, loadArgb64Pixels, 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, setTransparentColor, setUpdateXmpData, setUseRawData, toBitmap, writeArgb32ScanLine, writeScanLine
canLoad, canLoad, canLoad, canLoad, canSave, create, getBackgroundColor, getBounds, getContainer, getDefaultOptions, 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, setBackgroundColor, setInterruptMonitor, setPalette
getDataStreamContainer, save, save, save, save
close, dispose, getDisposed
public Jpeg2000Image(String path)
Initializes a new instance of the Jpeg2000Image
class.
path
- The path to load image from and initialize pixel and palette data with.public Jpeg2000Image(String path, int bitsPerPixel)
Initializes a new instance of the Jpeg2000Image
class.
path
- The path to load image from and initialize pixel and palette data withbitsPerPixel
- The bits per pixel.public Jpeg2000Image(InputStream stream)
Initializes a new instance of the Jpeg2000Image
class.
stream
- The stream to load image from and initialize pixel and palette data with.public Jpeg2000Image(InputStream stream, int bitsPerPixel)
Initializes a new instance of the Jpeg2000Image
class.
stream
- The stream to load image from and initialize pixel and palette data with.bitsPerPixel
- The bits per pixel.public Jpeg2000Image(int width, int height)
Initializes a new instance of the Jpeg2000Image
class.
width
- The image widthheight
- The image heightpublic Jpeg2000Image(int width, int height, Jpeg2000Options options)
Initializes a new instance of the Jpeg2000Image
class.
width
- The image widthheight
- The image heightoptions
- The options.public Jpeg2000Image(int width, int height, int bitsCount)
Initializes a new instance of the Jpeg2000Image
class.
width
- The image widthheight
- The image heightbitsCount
- The bits count.public Jpeg2000Image(RasterImage image)
Initializes a new instance of the Jpeg2000Image
class.
image
- The image.public Jpeg2000Image(RasterImage rasterImage, int bitsPerPixel)
Initializes a new instance of the Jpeg2000Image
class.
rasterImage
- The image to initialize pixel and palette data with.bitsPerPixel
- The bits per pixel.public XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata.
getXmpData
in class RasterImage
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata.
setXmpData
in class RasterImage
value
- The XMP metadata.public long getFileFormat()
Gets a value of file format
getFileFormat
in class Image
public PixelDataFormat getRawDataFormat()
Gets the raw data format.
getRawDataFormat
in class RasterImage
public int getRawLineSize()
Gets the raw line size in bytes.
getRawLineSize
in class RasterImage
public int getWidth()
Gets the image width
getWidth
in interface IObjectWithBounds
getWidth
in class Image
public int getHeight()
Gets the image height
getHeight
in interface IObjectWithBounds
getHeight
in class Image
public int getBitsPerPixel()
Gets image depth (bits per pixel)
getBitsPerPixel
in class Image
public double getHorizontalResolution()
Gets or sets the horizontal resolution, in pixels per inch, of this RasterImage
.
getHorizontalResolution
in class 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.
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.
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.
public double getVerticalResolution()
Gets or sets the vertical resolution, in pixels per inch, of this RasterImage
.
getVerticalResolution
in class 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.
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.
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.
public String[] getComments()
Gets or sets the comments.
public void setComments(String[] value)
Gets or sets the comments.
value
- The comments.public int getCodec()
Gets the codec.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.