Table of Contents

Method CreateDocumentBgra32

Namespace
PaintDotNet.FileTypes
Assembly
PaintDotNet.FileTypes.dll

CreateDocumentBgra32(IFileTypeDocumentFactory1, SizeInt32)

Creates a document of the given size with BGRA32 for the pixel format.

public static IFileTypeDocument<ColorBgra32> CreateDocumentBgra32(this IFileTypeDocumentFactory1 factory, SizeInt32 size)

Parameters

factory IFileTypeDocumentFactory1
size SizeInt32

Returns

IFileTypeDocument<ColorBgra32>

Remarks

In general, you should use the pixel format that is most natural for loading the image data, without worrying about whether it is a "native" pixel format (as per NativePixelFormats. This allows Paint.NET to handle the conversion in the most efficient mannaer and with the highest possible quality.

CreateDocumentBgra32(IFileTypeDocumentFactory1, int, int)

Creates a document of the given size with BGRA32 for the pixel format.

public static IFileTypeDocument<ColorBgra32> CreateDocumentBgra32(this IFileTypeDocumentFactory1 factory, int width, int height)

Parameters

factory IFileTypeDocumentFactory1
width int
height int

Returns

IFileTypeDocument<ColorBgra32>

Remarks

In general, you should use the pixel format that is most natural for loading the image data, without worrying about whether it is a "native" pixel format (as per NativePixelFormats. This allows Paint.NET to handle the conversion in the most efficient mannaer and with the highest possible quality.