com.aspose.imaging.fileformats.psd.resources
Class GridAndGuidesResouce

java.lang.Object
  extended by com.aspose.imaging.fileformats.psd.ResourceBlock
      extended by com.aspose.imaging.fileformats.psd.resources.GridAndGuidesResouce

public class GridAndGuidesResouce
extends ResourceBlock

Represents the grid and guides resource.


Constructor Summary
GridAndGuidesResouce()
           Initializes a new instance of the GridAndGuidesResouce class.
 
Method Summary
 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 the guides.
 int getHeaderVersion()
           Gets the header version.
 int getMinimalVersion()
           Gets the minimal required psd version.
protected  void saveData(StreamContainer streamContainer)
           Saves the resource block data.
 void setGridCycleX(int value)
           Sets the horizontal grid cycle.
 void setGridCycleY(int value)
           Sets the vertical grid cycle.
 void setGuides(GuideResource[] value)
           Sets the guides.
 void setHeaderVersion(int value)
           Sets the header version.
 
Methods inherited from class com.aspose.imaging.fileformats.psd.ResourceBlock
getID, getName, getSignature, getSize, save, setID, setName, validateValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridAndGuidesResouce

public GridAndGuidesResouce()

Initializes a new instance of the GridAndGuidesResouce class.

Method Detail

getDataSize

public int getDataSize()

Gets the resource data size in bytes.

Value: The resource data size.

Specified by:
getDataSize in class ResourceBlock

getGridCycleX

public int getGridCycleX()

Gets the horizontal grid cycle. The default is 576.

Value: The horizontal grid cycle.


getGridCycleY

public int getGridCycleY()

Gets the vertical grid cycle. The default is 576.

Value: The vertical grid cycle.


getGuideCount

public int getGuideCount()

Gets the guide resource blocks count.

Value: The guide resource blocks count.


getGuides

public GuideResource[] getGuides()

Gets the guides.

Value: The guides.


getHeaderVersion

public int getHeaderVersion()

Gets the header version. This value should be always 1.

Value: The header version.


getMinimalVersion

public int getMinimalVersion()

Gets the minimal required psd version.

Value: The minimal psd version.

Specified by:
getMinimalVersion in class ResourceBlock

saveData

protected void saveData(StreamContainer streamContainer)

Saves the resource block data.

Specified by:
saveData in class ResourceBlock
Parameters:
streamContainer - The stream container to save to.

setGridCycleX

public void setGridCycleX(int value)

Sets the horizontal grid cycle. The default is 576.

Value: The horizontal grid cycle.


setGridCycleY

public void setGridCycleY(int value)

Sets the vertical grid cycle. The default is 576.

Value: The vertical grid cycle.


setGuides

public void setGuides(GuideResource[] value)

Sets the guides.

Value: The guides.


setHeaderVersion

public void setHeaderVersion(int value)

Sets the header version. This value should be always 1.

Value: The header version.