Enables or disables automatic handling of premultiplied alpha channel values.
public bool PremultiplyAlpha { get; set; }
Public Property PremultiplyAlpha As Boolean
@property (nonatomic, assign) BOOL premultiplyAlpha
public boolean getPremultiplyAlpha()
public void setPremultiplyAlpha(boolean value)
true to allow LEADTOOLS to automatically handle premultiplied alpha channel values; false, otherwise.
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.
RasterMemoryFlags.WriteableBitmap
RasterImageConverter.ConvertToSource
ConvertToSourceOptions.AutoDetectAlpha
ConvertFromSourceOptions.AutoDetectAlpha
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document