GridAndGuidesResouce Class
Contents
[
Hide
]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
Name | Description |
---|---|
GridAndGuidesResouce() | Initializes a new instance of the GridAndGuidesResouce class |
Properties
Name | Type | Access | Description |
---|---|---|---|
RESOUCE_BLOCK_ME_SA_SIGNATURE [static] | int | r | The resource signature of ImageReady. |
RESOUCE_BLOCK_SIGNATURE [static] | int | r | The regular Photoshop resource signature. |
data_size | int | r | Gets the resource data size in bytes. |
grid_cycle_x | int | r/w | Gets or sets the horizontal grid cycle. The default is 576. |
grid_cycle_y | int | r/w | Gets or sets the vertical grid cycle. The default is 576. |
guide_count | int | r | Gets the guide resource blocks count. |
guides | GuideResource[] | r/w | Gets or sets the guides. |
header_version | int | r/w | Gets or sets the header version. This value should be always 1. |
id | short | r/w | Gets or sets the unique identifier for the resource. |
minimal_version | int | r | Gets the minimal required psd version. |
name | string | r/w | Gets or sets the resource name. Pascal string, padded to make the size even (a null name consists of two bytes of 0). |
signature | int | r | Gets the resource signature. Should be always ‘8BIM’. |
size | int | r | Gets the resource block size in bytes including its data. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
stream | StreamContainer | The stream to save the resource block to. |