GrdmResource Class

Summary: Class GrdmResource. Contains information about Gradient-Map layer.

Module: aspose.psd.fileformats.psd.layers.layerresources

Full Name: aspose.psd.fileformats.psd.layers.layerresources.GrdmResource

Inheritance: LayerResource

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
GrdmResource()Initializes a new instance of the GrdmResource class

Properties

NameTypeAccessDescription
PSB_RESOURCE_SIGNATURE [static]intrThe PSB-specific resource signature.
RESOURCE_SIGNATURE [static]intrThe common resource signature.
TYPE_TOOL_KEY [static]intrThe type tool info key.
color_modelshortr/wColor Model.
When ‘Gradient type’ = ‘Noise’, we can assign ‘Color Model’ to RGB/SHB/LAB (3/4/6).
color_pointsIGradientColorPoint[]r/wGets or sets the color points.
ditherboolr/wIs gradient dithered.
expansion_countshortr/wExpansion count ( = 2 for Photoshop 6.0).
gradient_modeGradientKindr/wMode for this gradient
Determines ‘Gradient Type’ = ‘Solid/Noise’ (0/1).
gradient_namestringr/wName of the gradient: Unicode string, padded.
interpolationshortr/wInterpolation. Determines Smoothness, when ‘Gradient Type’ = ‘Solid’ (GradientMode = 0).
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
maximum_colorRawColorrMaximum color of PixelDataFormat.Rgba64Bpp format.
Color has ARGB channels, Each channel is 16bit.
minimum_colorRawColorrMinimum color of PixelDataFormat.Rgba64Bpp format.
Color has ARGB channels, Each channel is 16bit.
psd_versionintrGets the minimal psd version required for layer resource. 0 indicates no restrictions.
reverseboolr/wIs gradient reversed.
rnd_number_seedintr/wThe random number seed used to generate colors for Noise gradient.
roughnessintr/wRoughness factor
When ‘Gradient type’ = ‘Noise’, we can assign ‘Roughness’ (0 - 2048).
show_transparencyshortr/wFlag for showing transparency
When ‘Gradient type’ = ‘Noise’, we can assign ‘Add transparency’ to true.
signatureintrGets the signature.
transparency_pointsIGradientTransparencyPoint[]r/wGets or sets the transparency points.
use_vector_colorshortr/wFlag for using vector color.

Methods

NameDescription
save(stream_container, psd_version)Saves resource data to the specified stream container.
set_psd_version(value)Sets the minimal psd version required for layer resource. 0 indicates no restrictions.

Constructor: GrdmResource()

 GrdmResource() 

Initializes a new instance of the GrdmResource class

Method: save(stream_container, psd_version)

 save(stream_container, psd_version) 

Saves resource data to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.
psd_versionintThe PSD version.

Method: set_psd_version(value)

 set_psd_version(value) 

Sets the minimal psd version required for layer resource. 0 indicates no restrictions.

Parameters:

ParameterTypeDescription
valueushortPsdversion value