GrdmResource
Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.LayerResource, com.aspose.psd.fileformats.psd.layers.layerresources.AdjustmentLayerResource
public class GrdmResource extends AdjustmentLayerResource
Class GrdmResource. Contains information about Gradient-Map layer.
Constructors
Constructor | Description |
---|---|
GrdmResource() | |
GrdmResource(int psdVersion) | Initializes a new instance of the GrdmResource class. |
Fields
Field | Description |
---|---|
DefaultScale_internalized | The default scale. |
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) | |
getClass() | |
getColorModel() | Color Model. |
getColorPoints() | Gets or sets the color points. |
getData() | Gets or sets the data. |
getDither() | Is gradient dithered. |
getExpansionCount() | Expansion count ( = 2 for Photoshop 6.0). |
getGradientLength_internalized() | Length(= 32 for Photoshop 6.0) No information what it is responsible for. |
getGradientMode() | Mode for this gradient Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1). |
getGradientName() | Name of the gradient: Unicode string, padded. |
getHeader_internalized() | Gets or sets the header. |
getInterpolation() | Interpolation. |
getKey() | Gets the layer resource key. |
getLength() | Gets the layer resource length in bytes. |
getMaximumColor() | Maximum color of PixelDataFormat.Rgba64Bpp format. |
getMinimumColor() | Minimum color of PixelDataFormat.Rgba64Bpp format. |
getPrefixLength_internalized(int psdVersion) | Gets the prefix length. |
getPsdVersion() | Gets the minimal psd version required for layer resource. |
getReverse() | Is gradient reversed. |
getRndNumberSeed() | The random number seed used to generate colors for Noise gradient. |
getRoughness() | Roughness factor When ‘Gradient type’ = ‘Noise’, we can assign ‘Roughness’ (0 - 2048). |
getShowTransparency() | Flag for showing transparency When ‘Gradient type’ = ‘Noise’, we can assign ‘Add transparency’ to true. |
getSignature() | Gets the signature. |
getTransparencyPoints() | Gets or sets the transparency points. |
getUseVectorColor() | Flag for using vector color. |
hashCode() | |
initGradientLength_internalized(short value) | Initializes the length of the gradient. |
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 resource data 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. |
setColorModel(short value) | Color Model. |
setColorPoints(IGradientColorPoint[] value) | Gets or sets the color points. |
setDither(boolean value) | Is gradient dithered. |
setExpansionCount(short value) | Expansion count ( = 2 for Photoshop 6.0). |
setGradientMode(int value) | Mode for this gradient Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1). |
setGradientName(String value) | Name of the gradient: Unicode string, padded. |
setHeader_internalized(PsdHeader value) | Gets or sets the header. |
setInterpolation(short value) | Interpolation. |
setMaximumColor(RawColor value) | Maximum color of PixelDataFormat.Rgba64Bpp format. |
setMinimumColor(RawColor value) | Minimum color of PixelDataFormat.Rgba64Bpp format. |
setReverse(boolean value) | Is gradient reversed. |
setRndNumberSeed(int value) | The random number seed used to generate colors for Noise gradient. |
setRoughness(int value) | Roughness factor When ‘Gradient type’ = ‘Noise’, we can assign ‘Roughness’ (0 - 2048). |
setShowTransparency(short value) | Flag for showing transparency When ‘Gradient type’ = ‘Noise’, we can assign ‘Add transparency’ to true. |
setTransparencyPoints(IGradientTransparencyPoint[] value) | Gets or sets the transparency points. |
setUseVectorColor(short value) | Flag for using vector color. |
toString() | Returns a String that represents this instance. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
GrdmResource()
public GrdmResource()
GrdmResource(int psdVersion)
public GrdmResource(int psdVersion)
Initializes a new instance of the GrdmResource class.
Parameters:
Parameter | Type | Description |
---|---|---|
psdVersion | int | The psd version of resource. |
DefaultScale_internalized
public static final int DefaultScale_internalized
The default scale.
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
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getColorModel()
public final short getColorModel()
Color Model. When ‘Gradient type’ = ‘Noise’, we can assign ‘Color Model’ to RGB/SHB/LAB (3/4/6).
Returns: short
getColorPoints()
public final IGradientColorPoint[] getColorPoints()
Gets or sets the color points.
Value: The color points.
Returns: com.aspose.psd.fileformats.psd.layers.IGradientColorPoint[]
getData()
public final byte[] getData()
Gets or sets the data.
Value: The data.
Returns: byte[]
getDither()
public final boolean getDither()
Is gradient dithered.
Returns: boolean
getExpansionCount()
public final short getExpansionCount()
Expansion count ( = 2 for Photoshop 6.0).
Returns: short
getGradientLength_internalized()
public final short getGradientLength_internalized()
Length(= 32 for Photoshop 6.0) No information what it is responsible for.
Returns: short
getGradientMode()
public final int getGradientMode()
Mode for this gradient Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1).
Returns: int
getGradientName()
public final String getGradientName()
Name of the gradient: Unicode string, padded.
Returns: java.lang.String
getHeader_internalized()
public final PsdHeader getHeader_internalized()
Gets or sets the header.
Value: The header.
Returns: com.aspose.internal.fileformats.psd.sections.PsdHeader
getInterpolation()
public final short getInterpolation()
Interpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’ (GradientMode = 0).
Returns: short
getKey()
public int getKey()
Gets the layer resource key.
Returns: int
getLength()
public int getLength()
Gets the layer resource length in bytes.
Returns: int
getMaximumColor()
public final RawColor getMaximumColor()
Maximum color of PixelDataFormat.Rgba64Bpp format. Color has ARGB channels, Each channel is 16bit.
Returns: RawColor
getMinimumColor()
public final RawColor getMinimumColor()
Minimum color of PixelDataFormat.Rgba64Bpp format. Color has ARGB channels, Each channel is 16bit.
Returns: RawColor
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
getReverse()
public final boolean getReverse()
Is gradient reversed.
Returns: boolean
getRndNumberSeed()
public final int getRndNumberSeed()
The random number seed used to generate colors for Noise gradient.
Returns: int
getRoughness()
public final int getRoughness()
Roughness factor When ‘Gradient type’ = ‘Noise’, we can assign ‘Roughness’ (0 - 2048).
Returns: int
getShowTransparency()
public final short getShowTransparency()
Flag for showing transparency When ‘Gradient type’ = ‘Noise’, we can assign ‘Add transparency’ to true.
Returns: short
getSignature()
public int getSignature()
Gets the signature.
Returns: int
getTransparencyPoints()
public final IGradientTransparencyPoint[] getTransparencyPoints()
Gets or sets the transparency points.
Value: The transparency points.
Returns: com.aspose.psd.fileformats.psd.layers.fillsettings.IGradientTransparencyPoint[]
getUseVectorColor()
public final short getUseVectorColor()
Flag for using vector color.
Returns: short
hashCode()
public native int hashCode()
Returns: int
initGradientLength_internalized(short value)
public final void initGradientLength_internalized(short value)
Initializes the length of the gradient. GradientLength is readonly, so it can be assigned just once.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short | The value. |
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 resource data to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
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. |
setColorModel(short value)
public final void setColorModel(short value)
Color Model. When ‘Gradient type’ = ‘Noise’, we can assign ‘Color Model’ to RGB/SHB/LAB (3/4/6).
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setColorPoints(IGradientColorPoint[] value)
public final void setColorPoints(IGradientColorPoint[] value)
Gets or sets the color points.
Value: The color points.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IGradientColorPoint[] |
setDither(boolean value)
public final void setDither(boolean value)
Is gradient dithered.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setExpansionCount(short value)
public final void setExpansionCount(short value)
Expansion count ( = 2 for Photoshop 6.0).
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setGradientMode(int value)
public final void setGradientMode(int value)
Mode for this gradient Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setGradientName(String value)
public final void setGradientName(String value)
Name of the gradient: Unicode string, padded.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
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 |
setInterpolation(short value)
public final void setInterpolation(short value)
Interpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’ (GradientMode = 0).
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setMaximumColor(RawColor value)
public final void setMaximumColor(RawColor value)
Maximum color of PixelDataFormat.Rgba64Bpp format. Color has ARGB channels, Each channel is 16bit.
Parameters:
Parameter | Type | Description |
---|---|---|
value | RawColor |
setMinimumColor(RawColor value)
public final void setMinimumColor(RawColor value)
Minimum color of PixelDataFormat.Rgba64Bpp format. Color has ARGB channels, Each channel is 16bit.
Parameters:
Parameter | Type | Description |
---|---|---|
value | RawColor |
setReverse(boolean value)
public final void setReverse(boolean value)
Is gradient reversed.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setRndNumberSeed(int value)
public final void setRndNumberSeed(int value)
The random number seed used to generate colors for Noise gradient.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setRoughness(int value)
public final void setRoughness(int value)
Roughness factor When ‘Gradient type’ = ‘Noise’, we can assign ‘Roughness’ (0 - 2048).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setShowTransparency(short value)
public final void setShowTransparency(short value)
Flag for showing transparency When ‘Gradient type’ = ‘Noise’, we can assign ‘Add transparency’ to true.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setTransparencyPoints(IGradientTransparencyPoint[] value)
public final void setTransparencyPoints(IGradientTransparencyPoint[] value)
Gets or sets the transparency points.
Value: The transparency points.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IGradientTransparencyPoint[] |
setUseVectorColor(short value)
public final void setUseVectorColor(short value)
Flag for using vector color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
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 |