LayerHashCalculator Class

Summary: Hash Calculator for PSD Layers. It can be used to found equals or different layers in different PSD files

Module: aspose.psd.fileformats.psd.layers

Full Name: aspose.psd.fileformats.psd.layers.LayerHashCalculator

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
LayerHashCalculator(layer)Initializes a new instance of the LayerHashCalculator class.

Methods

NameDescription
get_blending_hash()Gets the blending hash.
get_channels_hash()Gets the channels hash.
get_content_hash()Gets the content hash.

Constructor: LayerHashCalculator(layer)

 LayerHashCalculator(layer) 

Initializes a new instance of the LayerHashCalculator class.

Parameters:

ParameterTypeDescription
layerLayerThe layer.

Method: get_blending_hash()

 get_blending_hash() 

Gets the blending hash.

Returns

TypeDescription
intUnique hash for Layer Blending Options

Method: get_channels_hash()

 get_channels_hash() 

Gets the channels hash.

Returns

TypeDescription
intHash of all layer channels

Method: get_content_hash()

 get_content_hash() 

Gets the content hash.

Returns

TypeDescription
intThe hash of the significant parameters of layers. This hash is different for all types of layers