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
factoryIFileTypeDocumentFactory1sizeSizeInt32
Returns
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
factoryIFileTypeDocumentFactory1widthintheightint
Returns
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.