←Select platform

PremultiplyAlpha Property

Summary
Enables or disables automatic handling of premultiplied alpha channel values.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public bool PremultiplyAlpha { get; set; } 
@property (nonatomic, assign) BOOL premultiplyAlpha 
public boolean getPremultiplyAlpha(); 
public void setPremultiplyAlpha( 
   boolean booleanValue 
); 
public: 
property bool PremultiplyAlpha { 
   bool get(); 
   void set (    bool ); 
} 
PremultiplyAlpha # get and set (RasterImage) 

Property Value

true to allow LEADTOOLS to automatically handle premultiplied alpha channel values; false, otherwise.

Remarks

This property only applies to 32-bit images. This property only has an effect when using WriteableBitmap for memory storage of the image data.

When this property is set to True, LEADTOOLS will automatically do the required conversions to store premultipled alpha values into the WriteableBitmap. If you are dealing with 32-bit images that do not have meaningful alpha channel values, you should simply set this property to false.

Setting this property to True will slow down image processing functions. You should only use this if you know your images have meaningful alpha channel values.

Requirements

Target Platforms

Help Version 22.0.2023.5.16
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.