|
|||||||||
| 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.png.PngImage
public final class PngImage
A png image.
| Constructor Summary | |
|---|---|
PngImage(Bitmap bitmap,
ImageFormat imageFormat)
Initializes a new instance of the PngImage 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 Image. |
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 Image. |
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 PngImage(Bitmap bitmap,
ImageFormat imageFormat)
Initializes a new instance of the PngImage class.
bitmap - The bitmap.imageFormat - The image format.| Method Detail |
|---|
public void flush()
Flushes all cached data to disk.
flush in class DataStreamSupporterpublic int getBitsPerPixel()
Gets the image bits per pixel count.
Value: The image bits per pixel count.
getBitsPerPixel in class Imagepublic int getHeight()
Gets the image height.
Value: The image height.
getHeight in interface IObjectWithBoundsgetHeight in class Imagepublic double getHorizontalResolution()
Gets the horizontal resolution, in pixels per inch, of this Image.
getHorizontalResolution in class RasterImagepublic java.lang.String getImageLoaderDescriptorName()
Gets the name of the image loader descriptor.
Value: The name of the image loader descriptor.
getImageLoaderDescriptorName in class Imagepublic double getVerticalResolution()
Gets the vertical resolution, in pixels per inch, of this Image.
getVerticalResolution in class RasterImagepublic int getWidth()
Gets the image width.
Value: The image width.
getWidth in interface IObjectWithBoundsgetWidth in class Imageprotected Color[] loadPixelsInternal(Rectangle rectangle)
Loads pixels (format specific method).
loadPixelsInternal in class RasterImagerectangle - The rectangle to load pixels from.
public void resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image.
resize in class RasterImagenewWidth - 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 RasterImagerotateFlipType - Type of the rotate flip.
protected void savePixelsInternal(Rectangle rectangle,
Color[] pixels)
Saves pixels (format specific method).
savePixelsInternal in class RasterImagerectangle - The rectangle to save pixels to.pixels - The pixels array.public void setHorizontalResolution(double value)
Sets the horizontal resolution, in pixels per inch, of this Image.
setHorizontalResolution in class RasterImage
public void setResolution(double dpiX,
double dpiY)
Sets the resolution for this RasterImage.
setResolution in class RasterImagedpiX - 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)
Sets the vertical resolution, in pixels per inch, of this Image.
setVerticalResolution in class RasterImagepublic void update()
Updates the native image (makes dirty).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||