Layer
Overview
Layer is a class in Aspose.Psd FOSS for Python.
Layer channel IDs and data lengths are available via the PsdLayerChannelInfo properties channel_id and data_length.
This class declares 5 methods for Layer objects in Python programs.
Available methods include: __init__, create_parsed, load, mark_mutated, write.
Public members are accessible to any Python application after installing the Aspose.Psd FOSS for Python package.
Properties: IsVisible, additional_layer_data, blend_mode_key, blending_ranges_info, bottom, bounds, and 23 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read/Write | Gets or sets the name. |
bounds | Rectangle | Read | Gets the bounds. |
width | int | Read | Gets the width. |
height | int | Read | Gets the height. |
top | int | Read/Write | Gets or sets the top. |
left | int | Read/Write | Gets or sets the left. |
bottom | int | Read/Write | Gets or sets the bottom. |
right | int | Read/Write | Gets or sets the right. |
is_visible | bool | Read/Write | Gets or sets the is visible. |
IsVisible | bool | Read/Write | Gets or sets the is visible. |
opacity | int | Read/Write | Gets or sets the opacity. |
clipping | int | Read/Write | Gets or sets the clipping. |
blend_mode_key | BlendMode | Read/Write | Gets or sets the blend mode key. |
channels_count | int | Read | Gets the channels count. |
channel_information | List[ChannelInformation] | Read/Write | Gets or sets the channel information. |
channels | List[PsdLayerChannelInfo] | Read | Gets the channels. |
has_mask_data | bool | Read | Gets the has mask data. |
has_blending_ranges_data | bool | Read | Gets the has blending ranges data. |
mask_info | LayerMaskInfo | Read | Gets the mask info. |
blending_ranges_info | LayerBlendingRangesInfo | Read | Gets the blending ranges info. |
channel_info | List | Read | Gets the channel info. |
raw_flags | int | Read | Gets the raw flags. |
raw_layer_mask_section | `` | Read | Gets the raw layer mask section. |
raw_layer_blending_ranges_section | `` | Read | Gets the raw layer blending ranges section. |
layer_mask_data | Optional[LayerMaskDataShort] | Read/Write | Gets or sets the layer mask data. |
layer_blending_ranges_data | LayerBlendingRangesData | Read/Write | Gets or sets the layer blending ranges data. |
additional_layer_data | bytes | Read | Gets the additional layer data. |
raw_blend_mode_key | str | Read | Gets the raw blend mode key. |
has_mutated | bool | Read | Gets the has mutated. |
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this Layer instance. |
mark_mutated() | Calls mark_mutated on this Layer instance. |
load(reader: BigEndianReader, is_large_document: bool) → "Layer" | Calls load(reader, is_large_document) on this Layer instance. |
write(writer: BigEndianWriter, is_large_document: bool) | Calls write(writer, is_large_document) on this Layer instance. |
create_parsed(name: str, bounds: Rectangle, is_visible: bool, opacity: int, clipping: int, blend_mode: BlendMode, raw_data: LayerRawData) → "Layer" | Calls create_parsed(name, bounds, is_visible, opacity, clipping, blend_mode, raw_data) on this Layer instance. |