public abstract class SmartObjectResource extends PlacedResource implements ISmartObjectLayerResource
Defines the SmartObjectResource class that contains information about a smart object layer in a PSD file. Is is the base class for Sold and Sole resources that is used to support smart object layers in the Adobe� Photoshop� images.
SoLdResource,
SoLeResourcePsbResourceSignature, ResourceSignature| Modifier and Type | Method and Description |
|---|---|
int |
getAntiAliasPolicy()
Gets or sets the anti alias policy of the smart object layer data in the PSD image.
|
int |
getComp()
Gets or sets the comp value of the smart object layer data in the PSD file.
|
int |
getCompId()
Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
|
int |
getCrop()
Gets or sets the crop of the smart object layer data in the PSD image.
|
int |
getDurationDenominator()
Gets or sets the duration denominator.
|
int |
getDurationNumerator()
Gets or sets the duration numerator.
|
int |
getFrameCount()
Gets or sets the frame count of the smart object layer data in the PSD file.
|
int |
getFrameStepDenominator()
Gets or sets the frame step denominator.
|
int |
getFrameStepNumerator()
Gets or sets the frame step numerator.
|
double |
getHeight()
Gets or sets the height.
|
OSTypeStructure[] |
getItems()
Gets or sets the descriptor items of the smart object layer data in the PSD file.
|
int |
getLength()
Gets the smart object resource length in bytes.
|
double[] |
getNonAffineTransformMatrix()
Gets or sets the non affine transform matrix of the smart object layer data in the PSD file.
|
int |
getOriginalCompId()
Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
|
int |
getPageNumber()
Gets or sets the page number of the smart object layer data in the PSD file.
|
UUID |
getPlacedId()
Gets or sets the unique identifier of this smart object layer data in the PSD image.
|
int |
getPlacedLayerType()
Gets or sets the type of the smart object layer data in the PSD file.
|
int |
getPsdVersion()
Gets the minimal psd version required for the smart object resource.
|
double |
getResolution()
Gets or sets the resolution of the smart object layer data in the PSD file.
|
int |
getResolutionUnit()
Gets or sets the resolution measure unit of the smart object layer data in the PSD file.
|
int |
getSignature()
Gets the smart object resource signature.
|
int |
getTotalPages()
Gets or sets the total pages number of the smart object layer data in the PSD file.
|
double[] |
getTransformMatrix()
Gets or sets the transform matrix of the smart object layer data in the PSD file.
|
UUID |
getUniqueId()
Gets or sets the global unique identifier of the smart object layer data
SmartObjectResource in the PSD image. |
double |
getWidth()
Gets or sets the width.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the smart object resource to the specified stream container.
|
void |
setAntiAliasPolicy(int value)
Gets or sets the anti alias policy of the smart object layer data in the PSD image.
|
void |
setComp(int value)
Gets or sets the comp value of the smart object layer data in the PSD file.
|
void |
setCompId(int value)
Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
|
void |
setCrop(int value)
Gets or sets the crop of the smart object layer data in the PSD image.
|
void |
setDurationDenominator(int value)
Gets or sets the duration denominator.
|
void |
setDurationNumerator(int value)
Gets or sets the duration numerator.
|
void |
setFrameCount(int value)
Gets or sets the frame count of the smart object layer data in the PSD file.
|
void |
setFrameStepDenominator(int value)
Gets or sets the frame step denominator.
|
void |
setFrameStepNumerator(int value)
Gets or sets the frame step numerator.
|
void |
setHeight(double value)
Gets or sets the height.
|
void |
setItems(OSTypeStructure[] value)
Gets or sets the descriptor items of the smart object layer data in the PSD file.
|
void |
setNonAffineTransformMatrix(double[] value)
Gets or sets the non affine transform matrix of the smart object layer data in the PSD file.
|
void |
setPageNumber(int value)
Gets or sets the page number of the smart object layer data in the PSD file.
|
void |
setPlacedId(UUID value)
Gets or sets the unique identifier of this smart object layer data in the PSD image.
|
void |
setPlacedLayerType(int value)
Gets or sets the type of the smart object layer data in the PSD file.
|
void |
setResolution(double value)
Gets or sets the resolution of the smart object layer data in the PSD file.
|
void |
setResolutionUnit(int value)
Gets or sets the resolution measure unit of the smart object layer data in the PSD file.
|
void |
setTotalPages(int value)
Gets or sets the total pages number of the smart object layer data in the PSD file.
|
void |
setTransformMatrix(double[] value)
Gets or sets the transform matrix of the smart object layer data in the PSD file.
|
void |
setUniqueId(UUID value)
Gets or sets the global unique identifier of the smart object layer data
SmartObjectResource in the PSD image. |
void |
setWidth(double value)
Gets or sets the width.
|
get_Item, getBottom, getBounds, getHorizontalMeshPoints, getHorizontalMeshPointUnit, getLeft, getPerspective, getPerspectiveOther, getRight, getTop, getUOrder, getValue, getVersion, getVerticalMeshPoints, getVerticalMeshPointUnit, getVOrder, isCustom, setBottom, setBounds, setCustom, setHorizontalMeshPoints, setHorizontalMeshPointUnit, setLeft, setPerspective, setPerspectiveOther, setRight, setTop, setUOrder, setValue, setVersion, setVerticalMeshPoints, setVerticalMeshPointUnit, setVOrdergetKey, toStringgetBottom, getBounds, getHorizontalMeshPoints, getHorizontalMeshPointUnit, getLeft, getPerspective, getPerspectiveOther, getRight, getTop, getUOrder, getValue, getVersion, getVerticalMeshPoints, getVerticalMeshPointUnit, getVOrder, isCustom, setBottom, setBounds, setCustom, setHorizontalMeshPoints, setHorizontalMeshPointUnit, setLeft, setPerspective, setPerspectiveOther, setRight, setTop, setUOrder, setValue, setVerticalMeshPoints, setVerticalMeshPointUnit, setVOrderpublic final int getCompId()
Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions
of a layout in a single Adobe� Photoshop� file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but
this property gets the Layer Comp selection identifier for he smart object layer in the PSD file.
Layer comps in Smart Objects
public final void setCompId(int value)
Gets or sets the ID of the currently selected comp for the child document, which will be -1 if none are selected.
Comps are compositions of a page layout which designers can create. Using layer comps, you can create, manage, and view multiple versions
of a layout in a single Adobe� Photoshop� file. A layer comp is a snapshot of a state of the Layers panel. Layer comps save three types of layer options but
this property gets the Layer Comp selection identifier for he smart object layer in the PSD file.
Layer comps in Smart Objects
public final int getOriginalCompId()
Gets the original ID of the currently selected Comp for the child document, which will be -1 if none are selected.
This property gets the original layer Comp selection identifier for he smart object layer in the PSD file.
Layer comps in Smart Objects
public UUID getUniqueId()
Gets or sets the global unique identifier of the smart object layer data SmartObjectResource in the PSD image.
SmartObjectResource.getUniqueId in interface IPlacedLayerResourcegetUniqueId in class PlacedResourcepublic void setUniqueId(UUID value)
Gets or sets the global unique identifier of the smart object layer data SmartObjectResource in the PSD image.
SmartObjectResource.setUniqueId in interface IPlacedLayerResourcesetUniqueId in class PlacedResourcepublic final UUID getPlacedId()
Gets or sets the unique identifier of this smart object layer data in the PSD image.
Value: The unique identifier of this smart object layer resource.getPlacedId in interface ISmartObjectLayerResourcepublic final void setPlacedId(UUID value)
Gets or sets the unique identifier of this smart object layer data in the PSD image.
Value: The unique identifier of this smart object layer resource.setPlacedId in interface ISmartObjectLayerResourcepublic int getPageNumber()
Gets or sets the page number of the smart object layer data in the PSD file.
Value: The page number of the smart object layer data.getPageNumber in interface IPlacedLayerResourcegetPageNumber in class PlacedResourcepublic void setPageNumber(int value)
Gets or sets the page number of the smart object layer data in the PSD file.
Value: The page number of the smart object layer data.setPageNumber in interface IPlacedLayerResourcesetPageNumber in class PlacedResourcepublic int getTotalPages()
Gets or sets the total pages number of the smart object layer data in the PSD file.
Value: The total pages number of the smart object layer data.getTotalPages in interface IPlacedLayerResourcegetTotalPages in class PlacedResourcepublic void setTotalPages(int value)
Gets or sets the total pages number of the smart object layer data in the PSD file.
Value: The total pages number of the smart object layer data.setTotalPages in interface IPlacedLayerResourcesetTotalPages in class PlacedResourcepublic int getAntiAliasPolicy()
Gets or sets the anti alias policy of the smart object layer data in the PSD image.
Value: The anti alias policy of the smart object layer data.getAntiAliasPolicy in interface IPlacedLayerResourcegetAntiAliasPolicy in class PlacedResourcepublic void setAntiAliasPolicy(int value)
Gets or sets the anti alias policy of the smart object layer data in the PSD image.
Value: The anti alias policy of the smart object layer data.setAntiAliasPolicy in interface IPlacedLayerResourcesetAntiAliasPolicy in class PlacedResourcepublic int getPlacedLayerType()
Gets or sets the type of the smart object layer data in the PSD file.
Value: The type of the smart object layer data.getPlacedLayerType in interface IPlacedLayerResourcegetPlacedLayerType in class PlacedResourcepublic void setPlacedLayerType(int value)
Gets or sets the type of the smart object layer data in the PSD file.
Value: The type of the smart object layer data.setPlacedLayerType in interface IPlacedLayerResourcesetPlacedLayerType in class PlacedResourcepublic double[] getTransformMatrix()
Gets or sets the transform matrix of the smart object layer data in the PSD file.
Value: The transform matrix of the smart object layer data.getTransformMatrix in interface IPlacedLayerResourcegetTransformMatrix in class PlacedResourcepublic void setTransformMatrix(double[] value)
Gets or sets the transform matrix of the smart object layer data in the PSD file.
Value: The transform matrix of the smart object layer data.setTransformMatrix in interface IPlacedLayerResourcesetTransformMatrix in class PlacedResourcepublic final double[] getNonAffineTransformMatrix()
Gets or sets the non affine transform matrix of the smart object layer data in the PSD file.
Value: The non affine transform matrix of the smart object layer.public final void setNonAffineTransformMatrix(double[] value)
Gets or sets the non affine transform matrix of the smart object layer data in the PSD file.
Value: The non affine transform matrix of the smart object layer.public int getSignature()
Gets the smart object resource signature.
getSignature in class PlacedResourcepublic int getLength()
Gets the smart object resource length in bytes.
getLength in class LayerResourcepublic int getPsdVersion()
Gets the minimal psd version required for the smart object resource. 0 indicates no restrictions.
getPsdVersion in class LayerResourcepublic OSTypeStructure[] getItems()
Gets or sets the descriptor items of the smart object layer data in the PSD file.
Value: The descriptor items of placed layer information.getItems in interface IPlacedLayerResourcegetItems in class PlacedResourcepublic void setItems(OSTypeStructure[] value)
Gets or sets the descriptor items of the smart object layer data in the PSD file.
Value: The descriptor items of placed layer information.setItems in interface IPlacedLayerResourcesetItems in class PlacedResourcepublic final int getCrop()
Gets or sets the crop of the smart object layer data in the PSD image.
Value: The crop value of placed layer information.public final void setCrop(int value)
Gets or sets the crop of the smart object layer data in the PSD image.
Value: The crop value of placed layer information.public final int getFrameCount()
Gets or sets the frame count of the smart object layer data in the PSD file.
Value: The frame count of placed layer information.public final void setFrameCount(int value)
Gets or sets the frame count of the smart object layer data in the PSD file.
Value: The frame count of placed layer information.public final double getResolution()
Gets or sets the resolution of the smart object layer data in the PSD file.
Value: The resolution of the smart object layer.public final void setResolution(double value)
Gets or sets the resolution of the smart object layer data in the PSD file.
Value: The resolution of the smart object layer.public final int getResolutionUnit()
Gets or sets the resolution measure unit of the smart object layer data in the PSD file.
Value: The resolution measure unit of the smart object layer.public final void setResolutionUnit(int value)
Gets or sets the resolution measure unit of the smart object layer data in the PSD file.
Value: The resolution measure unit of the smart object layer.public final int getComp()
Gets or sets the comp value of the smart object layer data in the PSD file.
Layer comps in Smart Objects
public final void setComp(int value)
Gets or sets the comp value of the smart object layer data in the PSD file.
Layer comps in Smart Objects
public final double getWidth()
Gets or sets the width.
Value: The width.public final void setWidth(double value)
Gets or sets the width.
Value: The width.public final double getHeight()
Gets or sets the height.
Value: The height.public final void setHeight(double value)
Gets or sets the height.
Value: The height.public final int getFrameStepNumerator()
Gets or sets the frame step numerator.
Value: The frame step numerator.public final void setFrameStepNumerator(int value)
Gets or sets the frame step numerator.
Value: The frame step numerator.public final int getFrameStepDenominator()
Gets or sets the frame step denominator.
Value: The frame step denominator.public final void setFrameStepDenominator(int value)
Gets or sets the frame step denominator.
Value: The frame step denominator.public final int getDurationNumerator()
Gets or sets the duration numerator.
Value: The duration numerator.public final void setDurationNumerator(int value)
Gets or sets the duration numerator.
Value: The duration numerator.public final int getDurationDenominator()
Gets or sets the duration denominator.
Value: The duration denominator.public final void setDurationDenominator(int value)
Gets or sets the duration denominator.
Value: The duration denominator.public void save(StreamContainer streamContainer, int psdVersion)
Saves the smart object resource to the specified stream container.
save in class LayerResourcestreamContainer - The stream container to save to.psdVersion - The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.