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
TYPE_TOOL_KEY
RESOURCE_SIGNATURE
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 the X color.
|
float |
getColorY()
Gets the Y color.
|
float |
getColorZ()
Gets 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 |
setColorX(float value)
Sets the X color.
|
void |
setColorY(float value)
Sets the Y color.
|
void |
setColorZ(float value)
Sets the Z color.
|
void |
setRgbColor(Color color)
Sets the RGB color.
|
getDensity, getPreserveLuminosity, setDensity, setPreserveLuminosity
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.
public final float getColorX()
Gets the X color.
public final void setColorX(float value)
Sets the X color.
value
- public final float getColorY()
Gets the Y color.
public final void setColorY(float value)
Sets the Y color.
value
- public final float getColorZ()
Gets the Z color.
public final void setColorZ(float value)
Sets the Z color.
value
- public short getVersion()
Gets the version. Default is 2 or 3
getVersion
in class PhflResource
com.aspose.ms.System.NotImplementedException
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.Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.