public class PhflResourceVersion2 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 |
---|
PhflResourceVersion2()
Initializes a new instance of the
PhflResourceVersion2 class. |
PhflResourceVersion2(byte[] data)
Initializes a new instance of the
PhflResourceVersion2 class. |
Modifier and Type | Method and Description |
---|---|
short |
getColorSpace()
Gets the color space.
|
short |
getComponentA()
Gets or sets the A component of color
|
short |
getComponentB()
Gets or sets the B component
|
short |
getComponentL()
Gets or sets the L component of 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 |
setComponentA(short value)
Gets or sets the A component of color
|
void |
setComponentB(short value)
Gets or sets the B component
|
void |
setComponentL(short value)
Gets or sets the L component of color
|
void |
setRgbColor(Color color)
Sets the RGB color.
|
void |
setVersion(short value)
Gets the version.
|
getDensity, getPreserveLuminosity, setDensity, setPreserveLuminosity
getData, getSignature
toString
public PhflResourceVersion2()
Initializes a new instance of the PhflResourceVersion2
class.
public PhflResourceVersion2(byte[] data)
Initializes a new instance of the PhflResourceVersion2
class.
data
- The data pf 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 short getComponentL()
Gets or sets the L component of color
PsdImageArgumentException
- L Color must be in range from 0 to 10000
Value:
The L component.public final void setComponentL(short value)
Gets or sets the L component of color
PsdImageArgumentException
- L Color must be in range from 0 to 10000
Value:
The L component.public final short getComponentA()
Gets or sets the A component of color
PsdImageArgumentException
- A Color must be in range from -12800 to 12700
Value:
The A component.public final void setComponentA(short value)
Gets or sets the A component of color
PsdImageArgumentException
- A Color must be in range from -12800 to 12700
Value:
The A component.public final short getComponentB()
Gets or sets the B component
PsdImageArgumentException
- B Color must be in range from -12800 to 12700
Value:
The B component.public final void setComponentB(short value)
Gets or sets the B component
PsdImageArgumentException
- B Color must be in range from -12800 to 12700
Value:
The B component.public short getVersion()
Gets the version.
getVersion
in class PhflResource
com.aspose.ms.System.NotImplementedException
- Value:
The version.public void setVersion(short value)
Gets the version.
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.