Gets/sets the value which determines whether to premultiply image with alpha channel during image encoding or not.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Property AlphaPremultiplied As Boolean
public bool AlphaPremultiplied { get; set; }
The value of this property has meaning only when saving image with alpha channel.
TIFF specification defines two ways of alpha channel encoding.
You should use TIFF files with associated alpha if you have software which gain some benefit from them (for example, unassociated alpha channel will be shown as separate channel in Adobe® Photoshop®, while image with associated alpha will be shown as image with transparency). But you should take into account that premultiplying process slows down encoding and introduces rounding error. So you should not set this property to true without reason.
There is no difference for you between files with "associated" and "unassociated" alpha if you process them with Graphics Mill for .NET. TiffReader class implementation takes into account this option during image decoding and performs demultiplication if necessary. So you will always get usual Bitmap object with "unassociated" alpha.