public class PhflResourceVersion3 extends PhflResource
Class PhflResource. Resource of Exposure Adjustment Layer 2 Version ( = 3 ) or ( = 2 ) 12 4 bytes each for XYZ color(Only in Version 3) 10 2 bytes color space followed by 4 * 2 bytes color component(Only in Version 2) 4 Density 1 Preserve Luminosity
AdjustmentLayerResource,
LayerResourceTypeToolKeyPsbResourceSignature, ResourceSignature| Constructor and Description |
|---|
PhflResourceVersion3()
Initializes a new instance of the
PhflResourceVersion3 class. |
PhflResourceVersion3(byte[] data)
Initializes a new instance of the
PhflResourceVersion3 class. |
| Modifier and Type | Method and Description |
|---|---|
short |
getColorSpace()
Gets the color space.
|
float |
getColorX()
Gets or sets the X color.
|
float |
getColorY()
Gets or sets the Y color.
|
float |
getColorZ()
Gets or sets the Z color.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the psd version.
|
Color |
getRgbColor()
Gets the color.
|
short |
getVersion()
Gets the version.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setColorSpace(short value)
Gets the color space.
|
void |
setColorX(float value)
Gets or sets the X color.
|
void |
setColorY(float value)
Gets or sets the Y color.
|
void |
setColorZ(float value)
Gets or sets the Z color.
|
void |
setRgbColor(Color color)
Sets the RGB color.
|
void |
setVersion(short value)
Gets the version.
|
getDensity, getPreserveLuminosity, setDensity, setPreserveLuminositygetData, getSignaturetoStringpublic PhflResourceVersion3()
Initializes a new instance of the PhflResourceVersion3 class.
com.aspose.ms.System.ArgumentException - Supported only version 2 and 3public PhflResourceVersion3(byte[] data)
Initializes a new instance of the PhflResourceVersion3 class.
data - The data of the resource.PsdImageArgumentException - Invalid data lengthpublic final short getColorSpace()
Gets the color space.
Value: The color space.public void setColorSpace(short value)
Gets the color space.
Value: The color space.public final float getColorX()
Gets or sets the X color.
Value: The X color.public final void setColorX(float value)
Gets or sets the X color.
Value: The X color.public final float getColorY()
Gets or sets the Y color.
Value: The Y color.public final void setColorY(float value)
Gets or sets the Y color.
Value: The Y color.public final float getColorZ()
Gets or sets the Z color.
Value: The Z color.public final void setColorZ(float value)
Gets or sets the Z color.
Value: The Z color.public short getVersion()
Gets the version. Default is 2 or 3
getVersion in class PhflResourcecom.aspose.ms.System.NotImplementedException - Value:
The version.public void setVersion(short value)
Gets the version. Default is 2 or 3
setVersion in class PhflResourcecom.aspose.ms.System.NotImplementedException - Value:
The version.public int getKey()
Gets the layer resource key.
getKey in class PhflResourcepublic int getPsdVersion()
Gets the psd version.
getPsdVersion in class PhflResourcepublic int getLength()
Gets the layer resource length in bytes.
getLength in class LayerResourcepublic Color getRgbColor()
Gets the color.
getRgbColor in class PhflResourcepublic void setRgbColor(Color color)
Sets the RGB color.
setRgbColor in class PhflResourcecolor - The color.public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save in class AdjustmentLayerResourcestreamContainer - The stream container to save to.psdVersion - The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.