|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.DisposableObject
com.aspose.imaging.DataStreamSupporter
com.aspose.imaging.Image
com.aspose.imaging.RasterImage
com.aspose.imaging.fileformats.jpeg.JpegImage
public final class JpegImage
A jpeg image.
Constructor Summary | |
---|---|
JpegImage(Bitmap bitmap,
ImageFormat imageFormat)
Initializes a new instance of the JpegImage class. |
Method Summary | |
---|---|
void |
flush()
Flushes all cached data to disk. |
int |
getBitsPerPixel()
Gets the image bits per pixel count. |
int |
getHeight()
Gets the image height. |
double |
getHorizontalResolution()
Gets the horizontal resolution, in pixels per inch, of this Image . |
java.lang.String |
getImageLoaderDescriptorName()
Gets the name of the image loader descriptor. |
double |
getVerticalResolution()
Gets the vertical resolution, in pixels per inch, of this Image . |
int |
getWidth()
Gets the image width. |
protected Color[] |
loadPixelsInternal(Rectangle rectangle)
Loads pixels (format specific method). |
void |
resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image. |
void |
rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image. |
protected void |
savePixelsInternal(Rectangle rectangle,
Color[] pixels)
Saves pixels (format specific method). |
void |
setHorizontalResolution(double value)
Sets the horizontal resolution, in pixels per inch, of this RasterImage . |
void |
setResolution(double dpiX,
double dpiY)
Sets the resolution for this RasterImage . |
void |
setVerticalResolution(double value)
Sets the vertical resolution, in pixels per inch, of this RasterImage . |
void |
update()
Updates the native image (makes dirty). |
Methods inherited from class com.aspose.imaging.RasterImage |
---|
getPixel, loadPixels, readScanLine, releaseManagedResources, rotateFlip, savePixels, setPalette, setPixel, writeScanLine |
Methods inherited from class com.aspose.imaging.Image |
---|
canLoad, canLoad, canLoad, canLoad, canSave, create, getBounds, getContainer, getFileFormat, getFileFormat, getFitRectangle, getFitRectangle, getFittingRectangle, getFittingRectangle, getPalette, getSize, getUseCompactPalette, load, load, onCompactPaletteUsageChanged, onPaletteChanged, onPaletteChanging, resize, save, save, save, setContainer, setPalette, setUseCompactPalette |
Methods inherited from class com.aspose.imaging.DataStreamSupporter |
---|
getDataStreamContainer, onDataStreamContainerChanging, save, save, setDataStreamContainer |
Methods inherited from class com.aspose.imaging.DisposableObject |
---|
dispose, getDisposed, releaseUnmanagedResources, verifyNotDisposed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpegImage(Bitmap bitmap, ImageFormat imageFormat)
Initializes a new instance of the JpegImage
class.
bitmap
- The bitmap.imageFormat
- The image format.Method Detail |
---|
public void flush()
Flushes all cached data to disk.
flush
in class DataStreamSupporter
public int getBitsPerPixel()
Gets the image bits per pixel count.
Value: The image bits per pixel count.
getBitsPerPixel
in class Image
public int getHeight()
Gets the image height.
Value: The image height.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
public double getHorizontalResolution()
Gets the horizontal resolution, in pixels per inch, of this Image
.
getHorizontalResolution
in class RasterImage
public java.lang.String getImageLoaderDescriptorName()
Gets the name of the image loader descriptor.
Value: The name of the image loader descriptor.
getImageLoaderDescriptorName
in class Image
public double getVerticalResolution()
Gets the vertical resolution, in pixels per inch, of this Image
.
getVerticalResolution
in class RasterImage
public int getWidth()
Gets the image width.
Value: The image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
protected Color[] loadPixelsInternal(Rectangle rectangle)
Loads pixels (format specific method).
loadPixelsInternal
in class RasterImage
rectangle
- The rectangle to load pixels from.
public void resize(int newWidth, int newHeight, int resizeType)
Resizes the image.
resize
in class RasterImage
newWidth
- The new width.newHeight
- The new height.resizeType
- The resize type.public void rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image.
rotateFlip
in class RasterImage
rotateFlipType
- Type of the rotate flip.protected void savePixelsInternal(Rectangle rectangle, Color[] pixels)
Saves pixels (format specific method).
savePixelsInternal
in class RasterImage
rectangle
- The rectangle to save pixels to.pixels
- The pixels array.public void setHorizontalResolution(double value)
RasterImage
Sets the horizontal resolution, in pixels per inch, of this RasterImage
.
setHorizontalResolution
in class RasterImage
public void setResolution(double dpiX, double dpiY)
Sets the resolution for this RasterImage
.
setResolution
in class RasterImage
dpiX
- The horizontal resolution, in dots per inch, of the RasterImage
.dpiY
- The vertical resolution, in dots per inch, of the RasterImage
.public void setVerticalResolution(double value)
RasterImage
Sets the vertical resolution, in pixels per inch, of this RasterImage
.
setVerticalResolution
in class RasterImage
public void update()
Updates the native image (makes dirty).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |