LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
PremultiplyAlpha Property
See Also 
Leadtools Namespace > RasterImage Class : PremultiplyAlpha Property



Enables or disables automatic handling of premultiplied alpha channel values when using Silverlight WriteableBitmap. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property PremultiplyAlpha As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Boolean
 
instance.PremultiplyAlpha = value
 
value = instance.PremultiplyAlpha
C# 
public bool PremultiplyAlpha {get; set;}
C++/CLI 
public:
property bool PremultiplyAlpha {
   bool get();
   void set (    bool value);
}

Property Value

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

Remarks

This property is only supported in Silverlight versions. 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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also