public final class Jpeg2000Image
extends com.aspose.imaging.RasterCachedImage
Jpeg2000 library main class
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 |
---|---|
static Jpeg2000Image |
createInstance_internalized(int imgWidth,
int imgHeight,
IRasterImageArgb32PixelLoader reader,
int depth,
String[] comments)
Creates the new instance of the
Jpeg2000Image class. |
static Jpeg2000Image |
createInstance_internalized(com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData imageData,
String[] comments,
int codec,
com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegDecoderBase decoder,
IRasterImageArgb32PixelLoader reader)
Creates the new instance of the
Jpeg2000Image class. |
int |
getBitsPerPixel()
Gets image depth (bits per pixel)
|
int |
getCodec_internalized()
Gets the codec.
|
String[] |
getComments()
Gets or sets the comments.
|
int |
getHeight()
Gets the image height
|
double |
getHorizontalResolution()
Gets or sets the horizontal resolution, in pixels per inch, of this
RasterImage . |
com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData |
getImageInformation_internalized()
Gets or sets the image information.
|
com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegDecoderBase |
getJpegDecoder_internalized()
Gets the jpeg2000 stream reader.
|
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
|
static void |
saveJpeg2000_internalized(RasterImage inputImage,
com.aspose.ms.System.IO.Stream stream,
com.aspose.imaging_internal.fileformats.jpeg2000.Jpeg2000FileSettings settings,
Rectangle destImageBounds)
Saves the image into Jpeg2000 file format (j2k)
|
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 |
setImageInformation_internalized(com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData value)
Gets or sets the image information.
|
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, getFormatSpecificPalette_internalized, grayscale, isCached, resize, resize, rotate, rotateFlip, setFormatSpecificPalette_internalized
crop, dither, filter, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getPixel, getRawCustomColorConverter, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getTransparentColor, getXmpData, hasAlpha, hasTransparentColor, isRawDataAvailable, loadArgb32Pixels, loadCmykPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, readScanLine, rotate, saveArgb32Pixels, saveCmykPixels, savePixels, saveRawData, setArgb32Pixel, setPalette, setPixel, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setTransparentColor, setXmpData, 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 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 PixelDataFormat getRawDataFormat()
Gets the raw data format.
Value: The raw data format.getRawDataFormat
in class RasterImage
public int getRawLineSize()
Gets the raw line size in bytes.
Value: 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
.
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 void setHorizontalResolution(double value)
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 double getVerticalResolution()
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 setVerticalResolution(double value)
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 String[] getComments()
Gets or sets the comments.
Value: The comments.public void setComments(String[] value)
Gets or sets the comments.
Value: The comments.public com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData getImageInformation_internalized()
Gets or sets the image information.
Value: The image information.public void setImageInformation_internalized(com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData value)
Gets or sets the image information.
Value: The image information.public int getCodec_internalized()
Gets the codec.
Value: The codec.public com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegDecoderBase getJpegDecoder_internalized()
Gets the jpeg2000 stream reader.
Value: The jpeg2000 stream reader.public static Jpeg2000Image createInstance_internalized(int imgWidth, int imgHeight, IRasterImageArgb32PixelLoader reader, int depth, String[] comments)
Creates the new instance of the Jpeg2000Image
class.
imgWidth
- The image width.imgHeight
- The image height.reader
- A jpeg2000 data reader.depth
- The bit per pixels.comments
- The comments.Jpeg2000Image
class.public static Jpeg2000Image createInstance_internalized(com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegImageData imageData, String[] comments, int codec, com.aspose.imaging_internal.fileformats.jpeg2000.openjpeg.decoder.OpenJpegDecoderBase decoder, IRasterImageArgb32PixelLoader reader)
Creates the new instance of the Jpeg2000Image
class.
imageData
- The image data.comments
- The comments.codec
- The codec.decoder
- The decoder.reader
- The reader.Jpeg2000Image
class.public static void saveJpeg2000_internalized(RasterImage inputImage, com.aspose.ms.System.IO.Stream stream, com.aspose.imaging_internal.fileformats.jpeg2000.Jpeg2000FileSettings settings, Rectangle destImageBounds)
Saves the image into Jpeg2000 file format (j2k)
inputImage
- The image to load pixels fromstream
- The stream container to save tosettings
- The settings.destImageBounds
- The destination image bounds.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.