Method FromGdipImage
- Namespace
- PaintDotNet
- Assembly
- PaintDotNet.Data.dll
FromGdipImage(Image, bool)
Creates a document that consists of one BitmapLayer.
public static Document FromGdipImage(Image image, bool detectDishonestAlpha = true)
Parameters
image
ImageThe Image to make a copy of that will be the first layer ("Background") in the document.
detectDishonestAlpha
boolSee the documentation for the same paramter to Surface.CopyFromBitmap().