|
|||||||||
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.psd.PsdImage
public class PsdImage
A psd image.
Field Summary | |
---|---|
static int |
DefaultVersion
The default psd version. |
Constructor Summary | |
---|---|
PsdImage(PsdHeader psdHeader,
ColorData colorData,
ImageResources imageResources,
LayerAndMaskInfo layerAndMaskInfo,
ImageData imageData,
IColorPalette colorPalette,
boolean useCompactPalette,
int version)
Initializes a new instance of the PsdImage class. |
Method Summary | |
---|---|
int |
getBitsPerChannel()
Gets the bits per channel. |
int |
getBitsPerPixel()
Gets the image bits per pixel count. |
int |
getChannelsCount()
Gets the psd channels count. |
short |
getColorMode()
Gets the color mode. |
short |
getCompression()
Gets the compression method. |
int |
getHeight()
Gets the image height. |
java.lang.String |
getImageLoaderDescriptorName()
Gets the name of the image loader descriptor. |
ResourceBlock[] |
getResources()
Gets the psd resources. |
PsdSaveOptions |
getSaveOptions()
Gets the save options which may be used to save this image with the same settings. |
int |
getVersion()
Gets or sets the version. |
int |
getWidth()
Gets the image width. |
protected Color[] |
loadPixelsInternal(Rectangle rectangle)
Loads pixels (format specific method). |
protected void |
onCompactPaletteUsageChanged()
Called when compact palette usage is changed. |
protected void |
onDataStreamContainerChanging(StreamContainer streamContainer)
Called when data stream container is changing. |
protected void |
onPaletteChanged(IColorPalette oldPalette,
IColorPalette newPalette)
Called when palette is changed. |
void |
resize(int newWidth,
int newHeight,
int resizeType)
Resizes the specified new width. |
protected void |
rotateFlip(Color[] rotatedPixels,
int newWidth,
int newHeight)
Performs (completes) rotate, flip or both rotate and flip operation. |
protected void |
savePixelsInternal(Rectangle rectangle,
Color[] pixels)
Saves pixels (format specific method). |
void |
setVersion(int value)
|
Methods inherited from class com.aspose.imaging.RasterImage |
---|
getHorizontalResolution, getPixel, getVerticalResolution, loadPixels, readScanLine, releaseManagedResources, rotateFlip, savePixels, setHorizontalResolution, setPalette, setPixel, setResolution, setVerticalResolution, 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, onPaletteChanging, resize, save, save, save, setContainer, setPalette, setUseCompactPalette |
Methods inherited from class com.aspose.imaging.DataStreamSupporter |
---|
flush, getDataStreamContainer, 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 DefaultVersion
The default psd version.
Constructor Detail |
---|
public PsdImage(PsdHeader psdHeader, ColorData colorData, ImageResources imageResources, LayerAndMaskInfo layerAndMaskInfo, ImageData imageData, IColorPalette colorPalette, boolean useCompactPalette, int version)
Initializes a new instance of the PsdImage
class.
psdHeader
- The PSD header.colorData
- The color data.imageResources
- The image resources.layerAndMaskInfo
- The layer and mask info.imageData
- The image data.colorPalette
- The color palette.useCompactPalette
- if set to true
compact palette is used.version
- The psd version.Method Detail |
---|
public int getBitsPerChannel()
Gets the bits per channel.
Value: The bits per channel.
public int getBitsPerPixel()
Gets the image bits per pixel count.
Value: The image bits per pixel count.
getBitsPerPixel
in class Image
public int getChannelsCount()
Gets the psd channels count.
Value: The psd channels count.
public short getColorMode()
Gets the color mode.
Value: The color mode.
public short getCompression()
Gets the compression method.
Value: The compression.
public int getHeight()
Gets the image height.
Value: The image height.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
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 ResourceBlock[] getResources()
Gets the psd resources.
Value: The psd resources.
public PsdSaveOptions getSaveOptions()
Gets the save options which may be used to save this image with the same settings.
Value: The save options.
public int getVersion()
Gets or sets the version.
Value: The version.
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.
protected void onCompactPaletteUsageChanged()
Called when compact palette usage is changed.
onCompactPaletteUsageChanged
in class Image
protected void onDataStreamContainerChanging(StreamContainer streamContainer)
Called when data stream container is changing.
onDataStreamContainerChanging
in class DataStreamSupporter
streamContainer
- The stream container.protected void onPaletteChanged(IColorPalette oldPalette, IColorPalette newPalette)
Called when palette is changed.
onPaletteChanged
in class Image
oldPalette
- The old palette.newPalette
- The new palette.public void resize(int newWidth, int newHeight, int resizeType)
Resizes the specified new width.
resize
in class RasterImage
newWidth
- The new width.newHeight
- The new height.resizeType
- Type of the resize.protected void rotateFlip(Color[] rotatedPixels, int newWidth, int newHeight)
Performs (completes) rotate, flip or both rotate and flip operation. This method is called to update the data stream.
rotateFlip
in class RasterImage
rotatedPixels
- The already rotated pixels.newWidth
- The new estimated width.newHeight
- The new estimated height.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 setVersion(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |