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 imgWidth,
int imgHeight,
IRasterImageArgb32PixelLoader reader,
int depth,
String[] comments)
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)
|
String[] |
getComments()
Gets or sets the Jpeg2000 comment markers.
|
int |
getHeight()
Gets the image height
|
PixelDataFormat |
getRawDataFormat()
Gets the raw data format.
|
int |
getRawLineSize()
Gets the raw line size in bytes.
|
int |
getWidth()
Gets the image width
|
static void |
saveJpeg2000(RasterImage inputImage,
com.aspose.ms.System.IO.Stream stream,
String[] jpegComments,
Rectangle destImageBounds)
Saves the image into Jpeg2000 file format (j2k)
|
void |
setComments(String[] value)
Gets or sets the Jpeg2000 comment markers.
|
adjustBrightness, adjustContrast, adjustGamma, adjustGamma, beginResize_internalized, binarizeBradley, binarizeFixed, binarizeOtsu, cacheData, crop, dither, grayscale, isCached, resize, rotate, rotateFlip
crop, dither, getArgb32Pixel, getDefaultArgb32Pixels, getDefaultPixels, getDefaultRawData, getDefaultRawData, getHorizontalResolution, getPixel, getRawCustomColorConverter, getRawDataSettings, getRawFallbackIndex, getRawIndexedColorConverter, getTransparentColor, getVerticalResolution, hasTransparentColor, isRawDataAvailable, loadArgb32Pixels, loadCMYKPixels, loadPartialArgb32Pixels, loadPartialPixels, loadPixels, loadRawData, readScanLine, rotate, saveArgb32Pixels, saveCMYKPixels, savePixels, saveRawData, setArgb32Pixel, setHorizontalResolution, setPalette, setPixel, setRawCustomColorConverter, setRawFallbackIndex, setRawIndexedColorConverter, setResolution, setTransparentColor, setTransparentColor, setVerticalResolution, 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 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, 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 Jpeg2000Image(int imgWidth, int imgHeight, IRasterImageArgb32PixelLoader reader, int depth, String[] comments)
Initializes a new instance of the Jpeg2000Image
class.
imgWidth
- The image widthimgHeight
- The image heightreader
- jpeg2000 data readerdepth
- bit per pixelscomments
- The comments.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 String[] getComments()
Gets or sets the Jpeg2000 comment markers.
public void setComments(String[] value)
Gets or sets the Jpeg2000 comment markers.
public static void saveJpeg2000(RasterImage inputImage, com.aspose.ms.System.IO.Stream stream, String[] jpegComments, Rectangle destImageBounds)
Saves the image into Jpeg2000 file format (j2k)
inputImage
- The image to load pixels fromstream
- The stream container to save tojpegComments
- The JPEG comments.destImageBounds
- The dest image bounds.Copyright (c) 2008-2016 Aspose Pty Ltd. All Rights Reserved.