VstkResource
Inheritance: java.lang.Object, com.aspose.psd.fileformats.psd.layers.LayerResource
public class VstkResource extends LayerResource
Resource class VstkResource. Contains information about Vector Stroke Data. Resource should be initialized either by AssignItems method from resourcedata, either by assigning values to properties of the class.
Constructors
Constructor | Description |
---|---|
VstkResource() | Initializes a new instance of the VstkResource class. |
Fields
Field | Description |
---|---|
PsbHeaderVersion_internalized | The PSB header version |
PsbResourceSignature | The PSB-specific resource signature. |
PsdHeaderVersion_internalized | The PSD header version |
ResourceSignature | The common resource signature. |
TypeToolKey | The type tool info key. |
ventureLicense_internalized | The venture license. |
Methods
Method | Description |
---|---|
assignItems_internalized(OSTypeStructure[] items) | Assign items structures from Vstk resource. |
checkAndSetIfResourceIsPsbSpecific_internalized(int key) | Checks the and set if resource is PSB specific. |
equals(Object arg0) | |
getClass() | |
getClassId_internalized() | Gets or sets ClassID instance. |
getClassName_internalized() | Gets or sets class name. |
getFillEnabled() | Gets or sets a value indicating whether Stroke fill enabled. |
getFillSettings() | Gets or sets Fill settings of the Stroke. |
getHeader_internalized() | Gets or sets the header. |
getKey() | Gets the layer resource key. |
getLength() | Gets the layer resource length in bytes. |
getPrefixLength_internalized(int psdVersion) | Gets the prefix length. |
getPsdVersion() | Gets the minimal psd version required for layer resource. |
getSignature() | Gets the layer resource signature. |
getStrokeEnabled() | Gets or sets a value indicating whether stroke effect enabled. |
getStrokeStyleBlendMode() | Gets or sets Stroke Blend mode. |
getStrokeStyleContent() | Gets or sets Stroke entity. |
getStrokeStyleLineAlignment() | Gets or sets Stroke style line alignment. |
getStrokeStyleLineCapType() | Gets or sets the type of the stroke style line cap. |
getStrokeStyleLineCapWidth() | Gets or sets Stroke line cap width. |
getStrokeStyleLineDashOffset() | Gets or sets the stroke style line dash offset. |
getStrokeStyleLineDashSet() | Gets or sets array of line dashes. |
getStrokeStyleLineJoinType() | Gets or sets Stroke style line join type. |
getStrokeStyleLineWidth() | Gets or sets Stroke line width. |
getStrokeStyleMiterLimit() | Gets or sets the stroke style miter limit. |
getStrokeStyleOpacity() | Gets or sets Stroke style opacity (0-100%). |
getStrokeStyleResolution() | Gets or sets Stroke style resolution. |
getStrokeStyleScaleLock() | Gets or sets Stroke style scale lock. |
getStrokeStyleStrokeAdjust() | Gets or sets Stroke adjust. |
getStrokeStyleVersion() | Gets or sets the stroke style version. |
hashCode() | |
isResourcePsbSpecificByKey_internalized(int key) | Determines whether the resource is PSB specific. |
isResourcePsbSpecific_internalized() | Gets a value indicating whether this instance is resource PSB specific. |
notify() | |
notifyAll() | |
save(StreamContainer streamContainer, int psdVersion) | Saves the resource to the specified stream container. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature) | Saves the custom resource header. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong) | Saves the header signature, identifier and length. |
setClassId_internalized(ClassID value) | Gets or sets ClassID instance. |
setClassName_internalized(String value) | Gets or sets class name. |
setFillEnabled(boolean value) | Gets or sets a value indicating whether Stroke fill enabled. |
setFillSettings(IFillSettings value) | Gets or sets Fill settings of the Stroke. |
setHeader_internalized(PsdHeader value) | Gets or sets the header. |
setStrokeEnabled(boolean value) | Gets or sets a value indicating whether stroke effect enabled. |
setStrokeStyleBlendMode(long value) | Gets or sets Stroke Blend mode. |
setStrokeStyleContent(DescriptorStructure value) | Gets or sets Stroke entity. |
setStrokeStyleLineAlignment(short value) | Gets or sets Stroke style line alignment. |
setStrokeStyleLineCapType(short value) | Gets or sets the type of the stroke style line cap. |
setStrokeStyleLineCapWidth(double value) | Gets or sets Stroke line cap width. |
setStrokeStyleLineDashOffset(int value) | Gets or sets the stroke style line dash offset. |
setStrokeStyleLineDashSet(double[] value) | Gets or sets array of line dashes. |
setStrokeStyleLineJoinType(short value) | Gets or sets Stroke style line join type. |
setStrokeStyleLineWidth(double value) | Gets or sets Stroke line width. |
setStrokeStyleMiterLimit(double value) | Gets or sets the stroke style miter limit. |
setStrokeStyleOpacity(int value) | Gets or sets Stroke stryle opacity (0-100%). |
setStrokeStyleResolution(double value) | Gets or sets Stroke style resolution. |
setStrokeStyleScaleLock(boolean value) | Gets or sets Stroke style scale lock. |
setStrokeStyleStrokeAdjust(boolean value) | Gets or sets Stroke adjust. |
setStrokeStyleVersion(int value) | Gets or sets the stroke style version. |
toString() | Returns a String that represents this instance. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
VstkResource()
public VstkResource()
Initializes a new instance of the VstkResource class.
PsbHeaderVersion_internalized
public static final int PsbHeaderVersion_internalized
The PSB header version
PsbResourceSignature
public static final int PsbResourceSignature
The PSB-specific resource signature.
PsdHeaderVersion_internalized
public static final int PsdHeaderVersion_internalized
The PSD header version
ResourceSignature
public static final int ResourceSignature
The common resource signature.
TypeToolKey
public static final int TypeToolKey
The type tool info key.
ventureLicense_internalized
public Object ventureLicense_internalized
The venture license.
assignItems_internalized(OSTypeStructure[] items)
public final void assignItems_internalized(OSTypeStructure[] items)
Assign items structures from Vstk resource.
Parameters:
Parameter | Type | Description |
---|---|---|
items | OSTypeStructure[] | List of OSTypeStructure instances. |
checkAndSetIfResourceIsPsbSpecific_internalized(int key)
public final void checkAndSetIfResourceIsPsbSpecific_internalized(int key)
Checks the and set if resource is PSB specific. Some resources are not recognized for now, but we have full list of PSB specific resources which changes their behaviour on save. So we need to check this in UnknownResource at least
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The key. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getClassId_internalized()
public final ClassID getClassId_internalized()
Gets or sets ClassID instance.
Returns: ClassID
getClassName_internalized()
public final String getClassName_internalized()
Gets or sets class name.
Returns: java.lang.String
getFillEnabled()
public final boolean getFillEnabled()
Gets or sets a value indicating whether Stroke fill enabled.
Returns: boolean
getFillSettings()
public final IFillSettings getFillSettings()
Gets or sets Fill settings of the Stroke.
Returns: IFillSettings
getHeader_internalized()
public final PsdHeader getHeader_internalized()
Gets or sets the header.
Value: The header.
Returns: com.aspose.internal.fileformats.psd.sections.PsdHeader
getKey()
public int getKey()
Gets the layer resource key.
Returns: int
getLength()
public int getLength()
Gets the layer resource length in bytes.
Returns: int
getPrefixLength_internalized(int psdVersion)
public final int getPrefixLength_internalized(int psdVersion)
Gets the prefix length. Default value is 12 for 8BIM resources. and 16 for 8B64
Parameters:
Parameter | Type | Description |
---|---|---|
psdVersion | int | The PSD version. |
Returns: int - The Prefix Length.
getPsdVersion()
public final int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
Returns: int
getSignature()
public int getSignature()
Gets the layer resource signature.
Returns: int
getStrokeEnabled()
public final boolean getStrokeEnabled()
Gets or sets a value indicating whether stroke effect enabled.
Returns: boolean
getStrokeStyleBlendMode()
public final long getStrokeStyleBlendMode()
Gets or sets Stroke Blend mode.
Returns: long
getStrokeStyleContent()
public final DescriptorStructure getStrokeStyleContent()
Gets or sets Stroke entity. Property determines fill settings of the stroke.
Returns: DescriptorStructure
getStrokeStyleLineAlignment()
public final short getStrokeStyleLineAlignment()
Gets or sets Stroke style line alignment.
Returns: short
getStrokeStyleLineCapType()
public final short getStrokeStyleLineCapType()
Gets or sets the type of the stroke style line cap.
Value: The type of the stroke style line cap.
Returns: short
getStrokeStyleLineCapWidth()
public final double getStrokeStyleLineCapWidth()
Gets or sets Stroke line cap width.
Returns: double
getStrokeStyleLineDashOffset()
public final int getStrokeStyleLineDashOffset()
Gets or sets the stroke style line dash offset.
Value: The stroke style line dash offset.
Returns: int
getStrokeStyleLineDashSet()
public final Double[] getStrokeStyleLineDashSet()
Gets or sets array of line dashes.
Returns: java.lang.Double[]
getStrokeStyleLineJoinType()
public final short getStrokeStyleLineJoinType()
Gets or sets Stroke style line join type.
Returns: short
getStrokeStyleLineWidth()
public final double getStrokeStyleLineWidth()
Gets or sets Stroke line width.
Returns: double
getStrokeStyleMiterLimit()
public final double getStrokeStyleMiterLimit()
Gets or sets the stroke style miter limit.
Value: The stroke style miter limit.
Returns: double
getStrokeStyleOpacity()
public final int getStrokeStyleOpacity()
Gets or sets Stroke style opacity (0-100%).
Returns: int
getStrokeStyleResolution()
public final double getStrokeStyleResolution()
Gets or sets Stroke style resolution.
Returns: double
getStrokeStyleScaleLock()
public final boolean getStrokeStyleScaleLock()
Gets or sets Stroke style scale lock.
Returns: boolean
getStrokeStyleStrokeAdjust()
public final boolean getStrokeStyleStrokeAdjust()
Gets or sets Stroke adjust.
Returns: boolean
getStrokeStyleVersion()
public final int getStrokeStyleVersion()
Gets or sets the stroke style version.
Returns: int
hashCode()
public native int hashCode()
Returns: int
isResourcePsbSpecificByKey_internalized(int key)
public static boolean isResourcePsbSpecificByKey_internalized(int key)
Determines whether the resource is PSB specific.
Parameters:
Parameter | Type | Description |
---|---|---|
key | int | The resource key. |
Returns: boolean - true if the resource is PSB specific; otherwise, false .
isResourcePsbSpecific_internalized()
public final boolean isResourcePsbSpecific_internalized()
Gets a value indicating whether this instance is resource PSB specific.
Value: true if this instance is resource PSB specific; otherwise, false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
save(StreamContainer streamContainer, int psdVersion)
public void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container to save to. |
psdVersion | int | The PSD version. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature)
Saves the custom resource header.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
public final void saveCustomResourceHeader_internalized(StreamContainer streamContainer, int signature, boolean isLengthLong)
Saves the header signature, identifier and length.
Parameters:
Parameter | Type | Description |
---|---|---|
streamContainer | StreamContainer | The stream container. |
signature | int | The signature. |
isLengthLong | boolean | if set to true length is long. |
setClassId_internalized(ClassID value)
public final void setClassId_internalized(ClassID value)
Gets or sets ClassID instance.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ClassID |
setClassName_internalized(String value)
public final void setClassName_internalized(String value)
Gets or sets class name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setFillEnabled(boolean value)
public final void setFillEnabled(boolean value)
Gets or sets a value indicating whether Stroke fill enabled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setFillSettings(IFillSettings value)
public final void setFillSettings(IFillSettings value)
Gets or sets Fill settings of the Stroke.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IFillSettings |
setHeader_internalized(PsdHeader value)
public final void setHeader_internalized(PsdHeader value)
Gets or sets the header.
Value: The header.
Parameters:
Parameter | Type | Description |
---|---|---|
value | com.aspose.internal.fileformats.psd.sections.PsdHeader |
setStrokeEnabled(boolean value)
public final void setStrokeEnabled(boolean value)
Gets or sets a value indicating whether stroke effect enabled.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setStrokeStyleBlendMode(long value)
public final void setStrokeStyleBlendMode(long value)
Gets or sets Stroke Blend mode.
Parameters:
Parameter | Type | Description |
---|---|---|
value | long |
setStrokeStyleContent(DescriptorStructure value)
public final void setStrokeStyleContent(DescriptorStructure value)
Gets or sets Stroke entity. Property determines fill settings of the stroke.
Parameters:
Parameter | Type | Description |
---|---|---|
value | DescriptorStructure |
setStrokeStyleLineAlignment(short value)
public final void setStrokeStyleLineAlignment(short value)
Gets or sets Stroke style line alignment.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setStrokeStyleLineCapType(short value)
public final void setStrokeStyleLineCapType(short value)
Gets or sets the type of the stroke style line cap.
Value: The type of the stroke style line cap.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setStrokeStyleLineCapWidth(double value)
public final void setStrokeStyleLineCapWidth(double value)
Gets or sets Stroke line cap width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setStrokeStyleLineDashOffset(int value)
public final void setStrokeStyleLineDashOffset(int value)
Gets or sets the stroke style line dash offset.
Value: The stroke style line dash offset.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setStrokeStyleLineDashSet(double[] value)
public final void setStrokeStyleLineDashSet(double[] value)
Gets or sets array of line dashes.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double[] |
setStrokeStyleLineJoinType(short value)
public final void setStrokeStyleLineJoinType(short value)
Gets or sets Stroke style line join type.
Parameters:
Parameter | Type | Description |
---|---|---|
value | short |
setStrokeStyleLineWidth(double value)
public final void setStrokeStyleLineWidth(double value)
Gets or sets Stroke line width.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setStrokeStyleMiterLimit(double value)
public final void setStrokeStyleMiterLimit(double value)
Gets or sets the stroke style miter limit.
Value: The stroke style miter limit.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setStrokeStyleOpacity(int value)
public final void setStrokeStyleOpacity(int value)
Gets or sets Stroke stryle opacity (0-100%).
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setStrokeStyleResolution(double value)
public final void setStrokeStyleResolution(double value)
Gets or sets Stroke style resolution.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double |
setStrokeStyleScaleLock(boolean value)
public final void setStrokeStyleScaleLock(boolean value)
Gets or sets Stroke style scale lock.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setStrokeStyleStrokeAdjust(boolean value)
public final void setStrokeStyleStrokeAdjust(boolean value)
Gets or sets Stroke adjust.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setStrokeStyleVersion(int value)
public final void setStrokeStyleVersion(int value)
Gets or sets the stroke style version.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
toString()
public String toString()
Returns a String that represents this instance.
Returns: java.lang.String - A String that represents this instance.
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |