SharpenSmartFilter Class

Summary: The Sharpen smart filter.

Module: aspose.psd.fileformats.psd.layers.smartfilters

Full Name: aspose.psd.fileformats.psd.layers.smartfilters.SharpenSmartFilter

Inheritance: SmartFilter

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
SharpenSmartFilter()Initializes a new instance of the SharpenSmartFilter class.
SharpenSmartFilter(source_descriptor)Initializes a new instance of the SharpenSmartFilter class.

Properties

NameTypeAccessDescription
FILTER_TYPE [static]intrThe identifier of current smart filter.
blend_modeBlendModer/wGets or sets the blending mode.
filter_idintrGets the smart filter type identifier.
is_enabledboolr/wGets or sets the is enabled status of the smart filter.
namestringrGets the smart filter name.
opacitydoubler/wGets or sets the opacity value of smart filter.
source_descriptorDescriptorStructurerThe source descriptor structure with smart filter data.

Methods

NameDescription
apply(raster_image)Applies the current filter to input RasterImage image.
apply_to_mask(layer_with_mask)Applies the current filter to input Layer mask data.
clone()Makes the memberwise clone of the current instance of the type.

Constructor: SharpenSmartFilter()

 SharpenSmartFilter() 

Initializes a new instance of the SharpenSmartFilter class.

Constructor: SharpenSmartFilter(source_descriptor)

 SharpenSmartFilter(source_descriptor) 

Initializes a new instance of the SharpenSmartFilter class.

Parameters:

ParameterTypeDescription
source_descriptorDescriptorStructureThe descriptor structure with smart filter info.

Method: apply(raster_image)

 apply(raster_image) 

Applies the current filter to input RasterImage image.

Parameters:

ParameterTypeDescription
raster_imageRasterImageThe raster image.

Method: apply_to_mask(layer_with_mask)

 apply_to_mask(layer_with_mask) 

Applies the current filter to input Layer mask data.

Parameters:

ParameterTypeDescription
layer_with_maskLayerThe layer with mask data.

Method: clone()

 clone() 

Makes the memberwise clone of the current instance of the type.

Returns

TypeDescription
SmartFilterReturns the memberwise clone of the current instance of the type.