GridAndGuidesResouce Class

Summary: Represents the grid and guides resource.

Module: aspose.psd.fileformats.psd.resources

Full Name: aspose.psd.fileformats.psd.resources.GridAndGuidesResouce

Inheritance: ResourceBlock

Aspose.PSD Version: 24.9.0

Constructors

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

Properties

NameTypeAccessDescription
RESOUCE_BLOCK_ME_SA_SIGNATURE [static]intrThe resource signature of ImageReady.
RESOUCE_BLOCK_SIGNATURE [static]intrThe regular Photoshop resource signature.
data_sizeintrGets the resource data size in bytes.
grid_cycle_xintr/wGets or sets the horizontal grid cycle. The default is 576.
grid_cycle_yintr/wGets or sets the vertical grid cycle. The default is 576.
guide_countintrGets the guide resource blocks count.
guidesGuideResource[]r/wGets or sets the guides.
header_versionintr/wGets or sets the header version. This value should be always 1.
idshortr/wGets or sets the unique identifier for the resource.
minimal_versionintrGets the minimal required psd version.
namestringr/wGets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0).
signatureintrGets the resource signature. Should be always ‘8BIM’.
sizeintrGets the resource block size in bytes including its data.

Methods

NameDescription
save(stream)Saves the resource block to the specified stream.
validate_values()Validates the resource values.

Constructor: GridAndGuidesResouce()

 GridAndGuidesResouce() 

Initializes a new instance of the GridAndGuidesResouce class

Method: save(stream)

 save(stream) 

Saves the resource block to the specified stream.

Parameters:

ParameterTypeDescription
streamStreamContainerThe stream to save the resource block to.