public class PtFlResource extends FillLayerResource
Class PtFlResource. Contains Pattern Fill Layer Data.
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
Constructor and Description |
---|
PtFlResource(String patternName,
String patternId)
Initializes a new instance of the
PtFlResource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAlignWithLayer()
Gets or sets a value indicating whether [align with layer].
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
Point |
getOffset()
Gets or sets the offset.
|
String |
getPatternId()
Gets or sets the pattern identifier.
|
String |
getPatternName()
Gets or sets the name of the pattern.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
double |
getScale()
Gets or sets the scale.
|
int |
getSignature()
Gets the layer resource signature.
|
boolean |
isLinkedWithLayer()
Gets or sets a value indicating whether this instance is linked with layer.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
|
void |
setLinkedWithLayer(boolean value)
Gets or sets a value indicating whether this instance is linked with layer.
|
void |
setOffset(Point value)
Gets or sets the offset.
|
void |
setPatternId(String value)
Gets or sets the pattern identifier.
|
void |
setPatternName(String value)
Gets or sets the name of the pattern.
|
void |
setScale(double value)
Gets or sets the scale.
|
toString
public static final int TypeToolKey
The type tool info key.
public PtFlResource(String patternName, String patternId)
Initializes a new instance of the PtFlResource
class.
patternName
- Name of the pattern.patternId
- The pattern identifier.public int getSignature()
Gets the layer resource signature.
getSignature
in class FillLayerResource
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public final String getPatternName()
Gets or sets the name of the pattern.
Value: The name of the pattern.public final void setPatternName(String value)
Gets or sets the name of the pattern.
Value: The name of the pattern.public final Point getOffset()
Gets or sets the offset.
Value: The offset.public final void setOffset(Point value)
Gets or sets the offset.
Value: The offset.public final double getScale()
Gets or sets the scale.
Value: The scale.public final void setScale(double value)
Gets or sets the scale.
Value: The scale.public final boolean isLinkedWithLayer()
Gets or sets a value indicating whether this instance is linked with layer.
Value:true
if this instance is linked with layer; otherwise, false
.public final void setLinkedWithLayer(boolean value)
Gets or sets a value indicating whether this instance is linked with layer.
Value:true
if this instance is linked with layer; otherwise, false
.public final boolean getAlignWithLayer()
Gets or sets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.public final void setAlignWithLayer(boolean value)
Gets or sets a value indicating whether [align with layer].
Value:true
if [align with layer]; otherwise, false
.public final String getPatternId()
Gets or sets the pattern identifier.
Value: The pattern identifier.public final void setPatternId(String value)
Gets or sets the pattern identifier.
Value: The pattern identifier.public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.com.aspose.ms.System.NotImplementedException