public final class GridAndGuidesResouce extends ResourceBlock
Represents the grid and guides resource.
ResourceBlock.ResourceBlockState
RESOUCE_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 the horizontal grid cycle.
|
int |
getGridCycleY()
Gets the vertical grid cycle.
|
int |
getGuideCount()
Gets the guide resource blocks count.
|
GuideResource[] |
getGuides()
Gets or sets the guides.
|
int |
getHeaderVersion()
Gets or sets the header version.
|
int |
getMinimalVersion()
Gets the minimal required psd version.
|
void |
setGridCycleX(int value)
Sets the horizontal grid cycle.
|
void |
setGridCycleY(int value)
Sets the vertical grid cycle.
|
void |
setGuides(GuideResource[] value) |
void |
setHeaderVersion(int value) |
getID, getName, getSignature, getSize, save, setID, setName, validateValues
public GridAndGuidesResouce()
Initializes a new instance of the GridAndGuidesResouce
class.
public GuideResource[] getGuides()
Gets or sets the guides.
public void setGuides(GuideResource[] value)
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)
public int getGridCycleX()
Gets the horizontal grid cycle. The default is 576.
public void setGridCycleX(int value)
Sets the horizontal grid cycle. The default is 576.
value
- The horizontal grid cycle.public int getGridCycleY()
Gets the vertical grid cycle. The default is 576.
public void setGridCycleY(int value)
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 ResourceBlock
public int getMinimalVersion()
Gets the minimal required psd version.
getMinimalVersion
in class ResourceBlock
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.