Method DetectAndFixDishonestAlpha
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Core.dll
DetectAndFixDishonestAlpha()
Examines the pixels of this Surface and detects if its contents should be reprocessed.
If all alpha values are 255, then no processing is performed.
If all alpha values are greater than or equal to the color values, then the image is
converted from premultiplied alpha.
Otherwise, all alpha values are set to 255 and the color values are untouched.
public void DetectAndFixDishonestAlpha()
Remarks
This is usually not needed except when image data form a 3rd-party source needs to be imported with an untrusted pixel format. For instance, images acquired from the clipboard.