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

ConstructorDescription
BlwhResource()Initializes a new instance of the BlwhResource class.

Fields

FieldDescription
PsbHeaderVersion_internalizedThe PSB header version
PsbResourceSignatureThe PSB-specific resource signature.
PsdHeaderVersion_internalizedThe PSD header version
ResourceSignatureThe common resource signature.
TypeToolKeyThe type tool info key.
ventureLicense_internalizedThe venture license.

Methods

MethodDescription
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 psd version.
getReds()Gets or sets the reds value.
getSignature()Gets the 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:

ParameterTypeDescription
keyintThe key.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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 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:

ParameterTypeDescription
psdVersionintThe PSD version.

Returns: int - The Prefix Length.

getPsdVersion()

public int getPsdVersion()

Gets the psd version.

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 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:

ParameterTypeDescription
keyintThe 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:

ParameterTypeDescription
streamContainerStreamContainerThe stream container to save to.
psdVersionintThe PSD version.

saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)

Saves the custom resource header.

Parameters:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe 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:

ParameterTypeDescription
streamContainerStreamContainerThe stream container.
signatureintThe signature.
isLengthLongbooleanif 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:

ParameterTypeDescription
valuejava.lang.String

setBlues(int value)

public final void setBlues(int value)

Gets or sets the blues value.

Value: The blues value.

Parameters:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
valueint

setCyans(int value)

public final void setCyans(int value)

Gets or sets the cyans value.

Value: The cyans value.

Parameters:

ParameterTypeDescription
valueint

setGreens(int value)

public final void setGreens(int value)

Gets or sets the greens value.

Value: The greens value.

Parameters:

ParameterTypeDescription
valueint

setHeader_internalized(PsdHeader value)

public final void setHeader_internalized(PsdHeader value)

Gets or sets the header.

Value: The header.

Parameters:

ParameterTypeDescription
valuecom.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:

ParameterTypeDescription
valueint

setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)

public final void setPropertyValueByTypeStructure_internalized(OSTypeStructure structure)

Sets the property value by type structure.

Parameters:

ParameterTypeDescription
structureOSTypeStructureThe structure.

setReds(int value)

public final void setReds(int value)

Gets or sets the reds value.

Value: The reds value.

Parameters:

ParameterTypeDescription
valueint

setTintColor(int value)

public void setTintColor(int value)

Sets the tint color.

Parameters:

ParameterTypeDescription
valueintThe 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:

ParameterTypeDescription
valuedouble

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:

ParameterTypeDescription
valuedouble

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:

ParameterTypeDescription
valuedouble

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:

ParameterTypeDescription
valueboolean

setYellows(int value)

public final void setYellows(int value)

Gets or sets the yellows value.

Value: The yellows value.

Parameters:

ParameterTypeDescription
valueint

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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int