public final class GridAndGuidesResouce extends ResourceBlock
Represents the grid and guides resource.
ResourceBlock.ResourceBlockStateRESOUCE_BLOCK_SIGNATURE| Constructor and Description |
|---|
GridAndGuidesResouce()
Initializes a new instance of the
GridAndGuidesResouce class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataSize()
Gets the resource data size in bytes.
|
int |
getGridCycleX()
Gets or sets the horizontal grid cycle.
|
int |
getGridCycleY()
Gets or sets the vertical grid cycle.
|
int |
getGuideCount()
Gets the guide resource blocks count.
|
int |
getHeaderVersion()
Gets or sets the header version.
|
int |
getMinimalVersion()
Gets the minimal required psd version.
|
void |
setGridCycleX(int value)
Gets or sets the horizontal grid cycle.
|
void |
setGridCycleY(int value)
Gets or sets the vertical grid cycle.
|
void |
setHeaderVersion(int value)
Gets or sets the header version.
|
getID, getName, getSignature, getSize, save, setID, setName, validateValuespublic GridAndGuidesResouce()
Initializes a new instance of the GridAndGuidesResouce class.
public int getGuideCount()
Gets the guide resource blocks count.
public int getHeaderVersion()
Gets or sets the header version. This value should be always 1.
public void setHeaderVersion(int value)
Gets or sets the header version. This value should be always 1.
value - The header version.public int getGridCycleX()
Gets or sets the horizontal grid cycle. The default is 576.
public void setGridCycleX(int value)
Gets or sets the horizontal grid cycle. The default is 576.
value - The horizontal grid cycle.public int getGridCycleY()
Gets or sets the vertical grid cycle. The default is 576.
public void setGridCycleY(int value)
Gets or sets the vertical grid cycle. The default is 576.
value - The vertical grid cycle.public int getDataSize()
Gets the resource data size in bytes.
getDataSize in class ResourceBlockpublic int getMinimalVersion()
Gets the minimal required psd version.
getMinimalVersion in class ResourceBlock