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
,
LayerResource
TypeToolKey
PsbResourceSignature, 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, setPreserveLuminosity
getData, getSignature
toString
public 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 PhflResource
com.aspose.ms.System.NotImplementedException
- Value:
The version.public void setVersion(short value)
Gets the version. Default is 2 or 3
setVersion
in class PhflResource
com.aspose.ms.System.NotImplementedException
- Value:
The version.public int getKey()
Gets the layer resource key.
getKey
in class PhflResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class PhflResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public Color getRgbColor()
Gets the color.
getRgbColor
in class PhflResource
public void setRgbColor(Color color)
Sets the RGB color.
setRgbColor
in class PhflResource
color
- The color.public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save
in class AdjustmentLayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.