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
TYPE_TOOL_KEY
RESOURCE_SIGNATURE
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 the component a.
|
short |
getComponentB()
Gets the component b.
|
short |
getComponentL()
Gets the color of the l.
|
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 |
setComponentA(short value)
Sets the component a.
|
void |
setComponentB(short value)
Sets the component b.
|
void |
setComponentL(short value)
Sets the color of the l.
|
void |
setRgbColor(Color color)
Sets the RGB color.
|
getDensity, getPreserveLuminosity, setDensity, setPreserveLuminosity
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.
public final short getComponentL()
Gets the color of the l.
com.aspose.imaging.coreExceptions.imageFormats.PsdImageArgumentException
- L Color must be in range 0 >= L <= 10000public final void setComponentL(short value)
Sets the color of the l.
value
- com.aspose.imaging.coreExceptions.imageFormats.PsdImageArgumentException
- L Color must be in range 0 >= L <= 10000public final short getComponentA()
Gets the component a.
PsdImageArgumentException
- A Color must be in range -12800 >= a <= 12700public final void setComponentA(short value)
Sets the component a.
value
- PsdImageArgumentException
- A Color must be in range -12800 >= a <= 12700public final short getComponentB()
Gets the component b.
PsdImageArgumentException
- B Color must be in range -12800 >= b <= 12700public final void setComponentB(short value)
Sets the component b.
value
- PsdImageArgumentException
- B Color must be in range -12800 >= b <= 12700public short getVersion()
Gets the version.
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.