BlwhResource
Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.LayerResource, com.aspose.psd.fileformats.psd.layers.layerresources.AdjustmentLayerResource
public class BlwhResource extends AdjustmentLayerResource
BlwhResource class is a resource of Black and White Adjustment Layer.
Constructors
Constructor | Description |
---|---|
BlwhResource() | Initializes a new instance of the BlwhResource class. |
Fields
Field | Description |
---|---|
PsbHeaderVersion_internalized | The PSB header version |
PsbResourceSignature | The PSB-specific resource signature. |
PsdHeaderVersion_internalized | The PSD header version |
ResourceSignature | The common resource signature. |
TypeToolKey | The type tool info key. |
ventureLicense_internalized | The venture license. |
Methods
Method | Description |
---|---|
checkAndSetIfResourceIsPsbSpecific_internalized(int key) | Checks the and set if resource is PSB specific. |
equals(Object arg0) | |
getBlackAndWhitePresetFileName() | Gets or sets the black and white preset file name. |
getBlues() | Gets or sets the blues value. |
getBwPresetKind() | Gets or sets the black and white preset kind value. |
getClass() | |
getCyans() | Gets or sets the cyans value. |
getData() | Gets or sets the data. |
getGreens() | Gets or sets the greens value. |
getHeader_internalized() | Gets or sets the header. |
getKey() | Gets the layer resource key. |
getLength() | Gets the layer resource length in bytes. |
getMagentas() | Gets or sets the magentas value. |
getPrefixLength_internalized(int psdVersion) | Gets the prefix length. |
getPsdVersion() | Gets the minimal psd version required for layer resource. |
getReds() | Gets or sets the reds value. |
getSignature() | Gets the layer resource signature. |
getTintColor() | Gets the ARGB tint color. |
getTintColorBlue_internalized() | Gets or sets the Blue Tint Color double value. |
getTintColorGreen_internalized() | Gets or sets the Green Tint Color double value. |
getTintColorRed_internalized() | Gets or sets the Red Tint Color double value. |
getUseTint() | Gets or sets a value indicating whether [tint color] is used. |
getYellows() | Gets or sets the yellows value. |
hashCode() | |
isResourcePsbSpecificByKey_internalized(int key) | Determines whether the resource is PSB specific. |
isResourcePsbSpecific_internalized() | Gets a value indicating whether this instance is resource PSB specific. |
notify() | |
notifyAll() | |
save(StreamContainer streamContainer, int psdVersion) | Saves the resource to the specified stream container. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature) | Saves the custom resource header. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong) | Saves the header signature, identifier and length. |
setBlackAndWhitePresetFileName(String value) | Gets or sets the black and white preset file name. |
setBlues(int value) | Gets or sets the blues value. |
setBwPresetKind(int value) | Gets or sets the black and white preset kind value. |
setCyans(int value) | Gets or sets the cyans value. |
setGreens(int value) | Gets or sets the greens value. |
setHeader_internalized(PsdHeader value) | Gets or sets the header. |
setMagentas(int value) | Gets or sets the magentas value. |
setPropertyValueByTypeStructure_internalized(OSTypeStructure structure) | Sets the property value by type structure. |
setReds(int value) | Gets or sets the reds value. |
setTintColor(int value) | Sets the tint color. |
setTintColorBlue_internalized(double value) | Gets or sets the Blue Tint Color double value. |
setTintColorGreen_internalized(double value) | Gets or sets the Green Tint Color double value. |
setTintColorRed_internalized(double value) | Gets or sets the Red Tint Color double value. |
setUseTint(boolean value) | Gets or sets a value indicating whether [tint color] is used. |
setYellows(int value) | Gets or sets the yellows value. |
toString() | Returns a String that represents this instance. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
BlwhResource()
public BlwhResource()
Initializes a new instance of the BlwhResource class.
PsbHeaderVersion_internalized
public static final int PsbHeaderVersion_internalized
The PSB header version
PsbResourceSignature
public static final int PsbResourceSignature
The PSB-specific resource signature.
PsdHeaderVersion_internalized
public static final int PsdHeaderVersion_internalized
The PSD header version
ResourceSignature
public static final int ResourceSignature
The common resource signature.
TypeToolKey
public static final int TypeToolKey
The type tool info key.
ventureLicense_internalized
public Object ventureLicense_internalized
The venture license.
checkAndSetIfResourceIsPsbSpecific_internalized(int key)
public final void checkAndSetIfResourceIsPsbSpecific_internalized(int key)
Checks the and set if resource is PSB specific. Some resources are not recognized for now, but we have full list of PSB specific resources which changes their behaviour on save. So we need to check this in UnknownResource at least
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The key. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBlackAndWhitePresetFileName()
public final String getBlackAndWhitePresetFileName()
Gets or sets the black and white preset file name.
Value: The black and white preset file name.
Returns: java.lang.String
getBlues()
public final int getBlues()
Gets or sets the blues value.
Value: The blues value.
Returns: int
getBwPresetKind()
public final int getBwPresetKind()
Gets or sets the black and white preset kind value.
Value: The black and white preset kind value.
Returns: int
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCyans()
public final int getCyans()
Gets or sets the cyans value.
Value: The cyans value.
Returns: int
getData()
public final byte[] getData()
Gets or sets the data.
Value: The data.
Returns: byte[]
getGreens()
public final int getGreens()
Gets or sets the greens value.
Value: The greens value.
Returns: int
getHeader_internalized()
public final PsdHeader getHeader_internalized()
Gets or sets the header.
Value: The header.
Returns: com.aspose.internal.fileformats.psd.sections.PsdHeader
getKey()
public final int getKey()
Gets the layer resource key.
Returns: int
getLength()
public int getLength()
Gets the layer resource length in bytes.
Returns: int
getMagentas()
public final int getMagentas()
Gets or sets the magentas value.
Value: The magentas value.
Returns: int
getPrefixLength_internalized(int psdVersion)
public final int getPrefixLength_internalized(int psdVersion)
Gets the prefix length. Default value is 12 for 8BIM resources. and 16 for 8B64
Parameters:
Parameter | Type | Description |
---|---|---|
psdVersion | int | The PSD version. |
Returns: int - The Prefix Length.
getPsdVersion()
public final int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
Returns: int
getReds()
public final int getReds()
Gets or sets the reds value.
Value: The reds value.
Returns: int
getSignature()
public int getSignature()
Gets the layer resource signature.
Returns: int
getTintColor()
public int getTintColor()
Gets the ARGB tint color.
Returns: int - The ARGB tint color.
getTintColorBlue_internalized()
public final double getTintColorBlue_internalized()
Gets or sets the Blue Tint Color double value.
Value: The Blue Tint Color double value.
Returns: double
getTintColorGreen_internalized()
public final double getTintColorGreen_internalized()
Gets or sets the Green Tint Color double value.
Value: The Green Tint Color double value.
Returns: double
getTintColorRed_internalized()
public final double getTintColorRed_internalized()
Gets or sets the Red Tint Color double value.
Value: The Red Tint Color double value.
Returns: double
getUseTint()
public final boolean getUseTint()
Gets or sets a value indicating whether [tint color] is used.
Value: true if used [tint color]; otherwise, false .
Returns: boolean
getYellows()
public final int getYellows()
Gets or sets the yellows value.
Value: The yellows value.
Returns: int
hashCode()
public native int hashCode()
Returns: int
isResourcePsbSpecificByKey_internalized(int key)
public static boolean isResourcePsbSpecificByKey_internalized(int key)
Determines whether the resource is PSB specific.
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The resource key. |
Returns: boolean - true if the resource is PSB specific; otherwise, false .
isResourcePsbSpecific_internalized()
public final boolean isResourcePsbSpecific_internalized()
Gets a value indicating whether this instance is resource PSB specific.
Value: true if this instance is resource PSB specific; otherwise, false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(StreamContainer streamContainer, int psdVersion)
public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container to save to. |
psdVersion | int | The PSD version. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
Saves the custom resource header.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
Saves the header signature, identifier and length.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
isLengthLong | boolean | if set to true length is long. |
setBlackAndWhitePresetFileName(String value)
public final void setBlackAndWhitePresetFileName(String value)
Gets or sets the black and white preset file name.
Value: The black and white preset file name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setBlues(int value)
public final void setBlues(int value)
Gets or sets the blues value.
Value: The blues value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setBwPresetKind(int 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.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setCyans(int value)
public final void setCyans(int value)
Gets or sets the cyans value.
Value: The cyans value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setGreens(int value)
public final void setGreens(int value)
Gets or sets the greens value.
Value: The greens value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setHeader_internalized(PsdHeader value)
public final void setHeader_internalized(PsdHeader value)
Gets or sets the header.
Value: The header.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.internal.fileformats.psd.sections.PsdHeader |
setMagentas(int value)
public final void setMagentas(int value)
Gets or sets the magentas value.
Value: The magentas value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)
public final void setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)
Sets the property value by type structure.
Parameters:
Parameter | Type | Description |
---|---|---|
structure | OSTypeStructure | The structure. |
setReds(int value)
public final void setReds(int value)
Gets or sets the reds value.
Value: The reds value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setTintColor(int value)
public void setTintColor(int value)
Sets the tint color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The value. |
setTintColorBlue_internalized(double value)
public final void setTintColorBlue_internalized(double value)
Gets or sets the Blue Tint Color double value.
Value: The Blue Tint Color double value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setTintColorGreen_internalized(double value)
public final void setTintColorGreen_internalized(double value)
Gets or sets the Green Tint Color double value.
Value: The Green Tint Color double value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setTintColorRed_internalized(double value)
public final void setTintColorRed_internalized(double value)
Gets or sets the Red Tint Color double value.
Value: The Red Tint Color double value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setUseTint(boolean value)
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 .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setYellows(int value)
public final void setYellows(int value)
Gets or sets the yellows value.
Value: The yellows value.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
toString()
public String toString()
Returns a String that represents this instance.
Returns: java.lang.String - A String that represents this instance.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |