|
|||||||||
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.bmp.BmpImage
public final class BmpImage
A bmp image.
Field Summary | |
---|---|
static int |
BYTE_BITS_COUNT
Represents the byte bits count. |
static int |
BYTE_ROUNDING_BITS_COUNT
Represents a number of bits to get rounded byte. |
Constructor Summary | |
---|---|
BmpImage(BmpStreamHeader bmpStreamHeader)
Initializes a new instance of the BmpImage class. |
|
BmpImage(BmpStreamHeader bmpStreamHeader,
IColorPalette colorPalette,
boolean useCompactPalette)
Initializes a new instance of the BmpImage class. |
Method Summary | |
---|---|
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 RasterImage . |
java.lang.String |
getImageLoaderDescriptorName()
Gets the name of the image loader descriptor. |
double |
getVerticalResolution()
Gets the vertical resolution, in pixels per inch, of this RasterImage . |
int |
getWidth()
Gets the image width. |
protected void |
onCompactPaletteUsageChanged()
Called when compact palette usage is changed. |
protected void |
onPaletteChanged(IColorPalette oldPalette,
IColorPalette newPalette)
Called when palette is changed. |
protected void |
onPaletteChanging(IColorPalette oldPalette,
IColorPalette newPalette)
Called when palette is changing. |
void |
resize(int newWidth,
int newHeight,
int resizeType)
Resizes the image. |
void |
rotateFlip(int rotateFlipType)
Rotates, flips, or rotates and flips the image. |
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 . |
Methods inherited from class com.aspose.imaging.RasterImage |
---|
getPixel, loadPixels, loadPixelsInternal, readScanLine, releaseManagedResources, rotateFlip, savePixels, savePixelsInternal, 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, resize, save, save, save, setContainer, setPalette, setUseCompactPalette |
Methods inherited from class com.aspose.imaging.DataStreamSupporter |
---|
flush, 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 |
Field Detail |
---|
public static final int BYTE_BITS_COUNT
Represents the byte bits count.
public static final int BYTE_ROUNDING_BITS_COUNT
Represents a number of bits to get rounded byte.
Constructor Detail |
---|
public BmpImage(BmpStreamHeader bmpStreamHeader)
Initializes a new instance of the BmpImage
class.
bmpStreamHeader
- The bmp stream header.public BmpImage(BmpStreamHeader bmpStreamHeader, IColorPalette colorPalette, boolean useCompactPalette)
Initializes a new instance of the BmpImage
class.
bmpStreamHeader
- The bmp stream header.colorPalette
- The color palette.useCompactPalette
- if set to true
compact palette is used.Method Detail |
---|
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 RasterImage
.
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 RasterImage
.
getVerticalResolution
in class RasterImage
public int getWidth()
Gets the image width.
Value: The image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
protected void onCompactPaletteUsageChanged()
Called when compact palette usage is changed.
onCompactPaletteUsageChanged
in class Image
protected void onPaletteChanged(IColorPalette oldPalette, IColorPalette newPalette)
Called when palette is changed.
onPaletteChanged
in class Image
oldPalette
- The old palette.newPalette
- The new palette.protected void onPaletteChanging(IColorPalette oldPalette, IColorPalette newPalette)
Called when palette is changing.
onPaletteChanging
in class Image
oldPalette
- The old palette.newPalette
- The new palette.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.public void setHorizontalResolution(double value)
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)
Sets the vertical resolution, in pixels per inch, of this RasterImage
.
setVerticalResolution
in class RasterImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |