Leadtools Namespace > RasterImage Class : PremultiplyAlpha Property |
public bool PremultiplyAlpha {get; set;}
'Declaration Public Property PremultiplyAlpha As Boolean
'Usage Dim instance As RasterImage Dim value As Boolean instance.PremultiplyAlpha = value value = instance.PremultiplyAlpha
public bool PremultiplyAlpha {get; set;}
get_PremultiplyAlpha();
set_PremultiplyAlpha(value);
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2