SoLeResource Class
Contents
[
Hide
]Summary: Defines the SoLeResource class that contains information about a smart object layer in a PSD file.
Is is used to support smart object layers with external file links in the Adobe® Photoshop® images.
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.SoLeResource
Inheritance: IPlacedLayerResource, ISmartObjectLayerResource, SmartObjectResource
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
SoLeResource() | Initializes a new instance of the SoLeResource class. |
SoLeResource(unique_id, is_custom, has_comp_info) | Initializes a new instance of the SoLeResource class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
PSB_RESOURCE_SIGNATURE [static] | int | r | The PSB-specific resource signature. |
RESOURCE_SIGNATURE [static] | int | r | The common resource signature. |
TYPE_TOOL_KEY [static] | int | r | The type tool info key: ‘SoLE’. |
anti_alias_policy | int | r/w | Gets or sets the anti alias policy of the smart object layer data in the PSD image. |
bottom | double | r/w | Gets or sets the bottom location of the placed layer in the PSD image. |
bounds | Rectangle | r/w | Gets or sets the bounds of the placed layer in the PSD file. |
comp | int | r/w | Gets or sets the comp value of the smart object layer data in the PSD file. |
comp_id | int | r/w | 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. |
crop | int | r/w | Gets or sets the crop of the smart object layer data in the PSD image. |
duration_denominator | int | r/w | Gets or sets the duration denominator. |
duration_numerator | int | r/w | Gets or sets the duration numerator. |
frame_count | int | r/w | Gets or sets the frame count of the smart object layer data in the PSD file. |
frame_step_denominator | int | r/w | Gets or sets the frame step denominator. |
frame_step_numerator | int | r/w | Gets or sets the frame step numerator. |
height | double | r/w | Gets or sets the height. |
horizontal_mesh_point_unit | UnitTypes | r/w | Gets or sets the measure unit of the horizontal mesh points. |
horizontal_mesh_points | double | r/w | Gets or sets the horizontal mesh points of the placed layer in the PSD file. |
is_custom | bool | r/w | Gets or sets a value indicating whether this instance warp style is custom. If true it contains mesh points. If set to false it erases mesh points. |
items | OSTypeStructure[] | r/w | Gets or sets the descriptor items of the smart object layer data in the PSD file. |
key | int | r | Gets the Sole smart object layer resource key. |
left | double | r/w | Gets or sets the left location of the placed layer in the PSD file. |
length | int | r | Gets the smart object resource length in bytes. |
non_affine_transform_matrix | double | r/w | Gets or sets the non affine transform matrix of the smart object layer data in the PSD file. |
original_comp_id | int | r | 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. |
page_number | int | r/w | Gets or sets the page number of the smart object layer data in the PSD file. |
perspective | double | r/w | Gets or sets the perspective value of the placed layer in the PSD file. |
perspective_other | double | r/w | Gets or sets the perspective other value of the placed layer in the PSD file. |
placed_id | Guid | r/w | Gets or sets the unique identifier of this smart object layer data in the PSD image. |
placed_layer_type | PlacedLayerType | r/w | Gets or sets the type of the smart object layer data in the PSD file. |
psd_version | int | r | Gets the minimal psd version required for the smart object resource. 0 indicates no restrictions. |
resolution | double | r/w | Gets or sets the resolution of the smart object layer data in the PSD file. |
resolution_unit | UnitTypes | r/w | Gets or sets the resolution measure unit of the smart object layer data in the PSD file. |
right | double | r/w | Gets or sets the right location of the placed layer in the PSD file. |
signature | int | r | Gets the smart object resource signature. |
top | double | r/w | Gets or sets the top location of the placed layer in the PSD image. |
total_pages | int | r/w | Gets or sets the total pages number of the smart object layer data in the PSD file. |
transform_matrix | double | r/w | Gets or sets the transform matrix of the smart object layer data in the PSD file. |
u_order | int | r/w | Gets or sets the U order value of the placed layer in the PSD file. |
unique_id | Guid | r/w | Gets or sets the global unique identifier of the smart object layer data SmartObjectResource in the PSD image. |
v_order | int | r/w | Gets or sets the V order value of the placed layer in the PSD file. |
value | double | r/w | Gets or sets the warp value of the placed layer in the PSD image. |
version | int | r | Gets the version of the placed layer in the PSD file, usually 3-5. |
vertical_mesh_point_unit | UnitTypes | r/w | Gets or sets the measure unit of the vertical mesh points. |
vertical_mesh_points | double | r/w | Gets or sets the horizontal mesh points of the placed layer in the PSD file. |
width | double | r/w | Gets or sets the width. |
Methods
Name | Description |
---|---|
save(stream_container, psd_version) | Saves the smart object resource to the specified stream container. |
Constructor: SoLeResource()
SoLeResource()
Initializes a new instance of the SoLeResource class.
Constructor: SoLeResource(unique_id, is_custom, has_comp_info)
SoLeResource(unique_id, is_custom, has_comp_info)
Initializes a new instance of the SoLeResource class.
Parameters:
Parameter | Type | Description |
---|---|---|
unique_id | Guid | The unique identifier of the placed layer data PlLdResource. |
is_custom | bool | if set to |
has_comp_info | bool | if set to |
Method: save(stream_container, psd_version)
save(stream_container, psd_version)
Saves the smart object resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
stream_container | StreamContainer | The stream container to save to. |
psd_version | int | The PSD version. |