public class BlwhResource extends AdjustmentLayerResource
BlwhResource class is a resource of Black and White Adjustment Layer.
AdjustmentLayerResource
,
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
Constructor and Description |
---|
BlwhResource()
Initializes a new instance of the
BlwhResource class. |
Modifier and Type | Method and Description |
---|---|
String |
getBlackAndWhitePresetFileName()
Gets or sets the black and white preset file name.
|
int |
getBlues()
Gets or sets the blues value.
|
int |
getBwPresetKind()
Gets or sets the black and white preset kind value.
|
int |
getCyans()
Gets or sets the cyans value.
|
int |
getGreens()
Gets or sets the greens value.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getMagentas()
Gets or sets the magentas value.
|
int |
getPsdVersion()
Gets the psd version.
|
int |
getReds()
Gets or sets the reds value.
|
int |
getTintColor()
Gets the ARGB tint color.
|
boolean |
getUseTint()
Gets or sets a value indicating whether [tint color] is used.
|
int |
getYellows()
Gets or sets the yellows value.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setBlackAndWhitePresetFileName(String value)
Gets or sets the black and white preset file name.
|
void |
setBlues(int value)
Gets or sets the blues value.
|
void |
setBwPresetKind(int value)
Gets or sets the black and white preset kind value.
|
void |
setCyans(int value)
Gets or sets the cyans value.
|
void |
setGreens(int value)
Gets or sets the greens value.
|
void |
setMagentas(int value)
Gets or sets the magentas value.
|
void |
setReds(int value)
Gets or sets the reds value.
|
void |
setTintColor(int value)
Sets the tint color.
|
void |
setUseTint(boolean value)
Gets or sets a value indicating whether [tint color] is used.
|
void |
setYellows(int value)
Gets or sets the yellows value.
|
getData, getSignature
toString
public static final int TypeToolKey
The type tool info key.
public BlwhResource()
Initializes a new instance of the BlwhResource
class.
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class LayerResource
public final int getReds()
Gets or sets the reds value.
Value: The reds value.public final void setReds(int value)
Gets or sets the reds value.
Value: The reds value.public final int getYellows()
Gets or sets the yellows value.
Value: The yellows value.public final void setYellows(int value)
Gets or sets the yellows value.
Value: The yellows value.public final int getGreens()
Gets or sets the greens value.
Value: The greens value.public final void setGreens(int value)
Gets or sets the greens value.
Value: The greens value.public final int getCyans()
Gets or sets the cyans value.
Value: The cyans value.public final void setCyans(int value)
Gets or sets the cyans value.
Value: The cyans value.public final int getBlues()
Gets or sets the blues value.
Value: The blues value.public final void setBlues(int value)
Gets or sets the blues value.
Value: The blues value.public final int getMagentas()
Gets or sets the magentas value.
Value: The magentas value.public final void setMagentas(int value)
Gets or sets the magentas value.
Value: The magentas value.public final boolean getUseTint()
Gets or sets a value indicating whether [tint color] is used.
Value:true
if used [tint color]; otherwise, false
.public final void setUseTint(boolean value)
Gets or sets a value indicating whether [tint color] is used.
Value:true
if used [tint color]; otherwise, false
.public final int getBwPresetKind()
Gets or sets the black and white preset kind value.
Value: The black and white preset kind value.public final void setBwPresetKind(int value)
Gets or sets the black and white preset kind value.
Value: The black and white preset kind value.public final String getBlackAndWhitePresetFileName()
Gets or sets the black and white preset file name.
Value: The black and white preset file name.public final void setBlackAndWhitePresetFileName(String value)
Gets or sets the black and white preset file name.
Value: The black and white preset file name.public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
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.public int getTintColor()
Gets the ARGB tint color.
public void setTintColor(int value)
Sets the tint color.
value
- The value.