GridAndGuidesResouce class

GridAndGuidesResouce class

Represents the grid and guides resource.

Inheritance: GridAndGuidesResouceResourceBlock

The GridAndGuidesResouce type exposes the following members:

Constructors

ConstructorDescription
initInitializes a new instance of the GridAndGuidesResouce class.

Properties

PropertyDescription
signatureGets the resource signature. Should be always ‘8BIM’.
idGets or sets the unique identifier for the resource.
nameGets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
data_sizeGets the resource data size in bytes.
sizeGets the resource block size in bytes including its data.
minimal_versionGets the minimal required psd version.
RESOUCE_BLOCK_SIGNATUREThe resource signature.
guide_countGets the guide resource blocks count.
header_versionGets or sets the header version. This value should be always 1.
grid_cycle_xGets or sets the horizontal grid cycle. The default is 576.
grid_cycle_yGets or sets the vertical grid cycle. The default is 576.

Methods

MethodDescription
saveSaves the resource block to the specified stream.
validate_valuesValidates the resource values.

See Also