Table of Contents

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 Image

The Image to make a copy of that will be the first layer ("Background") in the document.

detectDishonestAlpha bool

See the documentation for the same paramter to Surface.CopyFromBitmap().

Returns

Document