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

NameTypeAccessDescription
namestrRead/WriteGets or sets the name.
boundsRectangleReadGets the bounds.
widthintReadGets the width.
heightintReadGets the height.
topintRead/WriteGets or sets the top.
leftintRead/WriteGets or sets the left.
bottomintRead/WriteGets or sets the bottom.
rightintRead/WriteGets or sets the right.
is_visibleboolRead/WriteGets or sets the is visible.
IsVisibleboolRead/WriteGets or sets the is visible.
opacityintRead/WriteGets or sets the opacity.
clippingintRead/WriteGets or sets the clipping.
blend_mode_keyBlendModeRead/WriteGets or sets the blend mode key.
channels_countintReadGets the channels count.
channel_informationList[ChannelInformation]Read/WriteGets or sets the channel information.
channelsList[PsdLayerChannelInfo]ReadGets the channels.
has_mask_databoolReadGets the has mask data.
has_blending_ranges_databoolReadGets the has blending ranges data.
mask_infoLayerMaskInfoReadGets the mask info.
blending_ranges_infoLayerBlendingRangesInfoReadGets the blending ranges info.
channel_infoListReadGets the channel info.
raw_flagsintReadGets the raw flags.
raw_layer_mask_section``ReadGets the raw layer mask section.
raw_layer_blending_ranges_section``ReadGets the raw layer blending ranges section.
layer_mask_dataOptional[LayerMaskDataShort]Read/WriteGets or sets the layer mask data.
layer_blending_ranges_dataLayerBlendingRangesDataRead/WriteGets or sets the layer blending ranges data.
additional_layer_databytesReadGets the additional layer data.
raw_blend_mode_keystrReadGets the raw blend mode key.
has_mutatedboolReadGets the has mutated.

Methods

SignatureDescription
__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.

See Also