BitmapDataFactory Class

Provides factory methods to create IReadWriteBitmapData instances.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.0.0-preview.1
C#
public static class BitmapDataFactory
Inheritance
Object    BitmapDataFactory

Methods

BeginLoad Begins to load a managed IReadWriteBitmapData instance from the specified stream asynchronously that was saved by the BitmapDataExtensions.Save method.
CreateBitmapData(Size, KnownPixelFormat, Palette) Creates an IReadWriteBitmapData instance with the specified size, pixelFormat and palette.
CreateBitmapData(IntPtr, Size, Int32, CustomBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping an unmanaged buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapData(IntPtr, Size, Int32, CustomIndexedBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping an unmanaged buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapData(Size, KnownPixelFormat, Color32, Byte) Creates an IReadWriteBitmapData instance with the specified size and pixelFormat.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) Creates an IReadWriteBitmapData instance with the specified size and pixelFormat.
CreateBitmapData(IntPtr, Size, Int32, KnownPixelFormat, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping an unmanaged buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapData(IntPtr, Size, Int32, KnownPixelFormat, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance wrapping an unmanaged buffer and using the specified parameters.
CreateBitmapData(IntPtr, Size, Int32, KnownPixelFormat, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping an unmanaged buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapData(IntPtr, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRow, Int32, Color32, ActionICustomBitmapDataRow, Int32, Color32, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping an unmanaged buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapData(IntPtr, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapData(IntPtr, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRow, Int32, Int32, ActionICustomBitmapDataRow, Int32, Int32, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping an unmanaged buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) overload for details.
CreateBitmapData(IntPtr, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRow, Int32, Color32, ActionICustomBitmapDataRow, Int32, Color32, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping an unmanaged buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapData(IntPtr, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(Array2DT, Int32, CustomBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(Array2DT, Int32, CustomIndexedBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom indexed pixel format wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Int32, CustomBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated two dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Int32, CustomIndexedBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom indexed pixel format for a preallocated two dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, CustomBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, CustomIndexedBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom indexed pixel format wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated one dimensional array with the specified parameters.
CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) Creates an IReadWriteBitmapData instance with a custom indexed pixel format for a preallocated one dimensional array with the specified parameters.
CreateBitmapDataT(T, Int32, KnownPixelFormat, Color32, Byte, Action) Creates an IReadWriteBitmapData instance for a preallocated two dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(T, Int32, KnownPixelFormat, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance for a preallocated two dimensional array with the specified parameters.
CreateBitmapDataT(Array2DT, Int32, KnownPixelFormat, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(Array2DT, Int32, KnownPixelFormat, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
CreateBitmapDataT(T, Size, Int32, KnownPixelFormat, Color32, Byte, Action) Creates an IReadWriteBitmapData instance for a preallocated one dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(T, Size, Int32, KnownPixelFormat, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance for a preallocated one dimensional array with the specified parameters.
CreateBitmapDataT(T, Int32, KnownPixelFormat, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance for a preallocated two dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(Array2DT, Int32, KnownPixelFormat, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, KnownPixelFormat, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, KnownPixelFormat, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
CreateBitmapDataT(T, Size, Int32, KnownPixelFormat, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance for a preallocated one dimensional array with the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(T, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated two dimensional array with the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance with a custom indexed pixel format for a preallocated two dimensional array with the specified parameters. If you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Int32, CustomIndexedBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(Array2DT, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(Array2DT, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(Array2DT, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance with a custom indexed pixel format wrapping the specified buffer and using the specified parameters. If you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(Array2DT, Int32, CustomIndexedBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, KnownPixelFormat, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance wrapping the specified buffer and using the specified parameters.
See the Remarks section of the CreateBitmapData(Size, KnownPixelFormat, WorkingColorSpace, Color32, Byte) overload for details.
CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated one dimensional array with the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance with a custom indexed pixel format for a preallocated one dimensional array with the specified parameters. If you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated two dimensional array with the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(Array2DT, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(Array2DT, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(ArraySectionT, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) Creates an IReadWriteBitmapData instance with a custom indexed pixel format wrapping the specified buffer and using the specified parameters. If you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(ArraySectionT, Size, Int32, CustomIndexedBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomIndexedBitmapDataConfig) overload for details.
CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format for a preallocated one dimensional array with the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
CreateBitmapDataT(ArraySectionT, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, WorkingColorSpace, Color32, Byte, Action) Creates an IReadWriteBitmapData instance with a custom non-indexed pixel format wrapping the specified buffer and using the specified parameters. By this overload you can specify a pair of custom getter/setter delegates using the Color32 color type. If other color types fit better for the custom format or you can ensure that the delegates don't capture buffer use the CreateBitmapDataT(ArraySectionT, Size, Int32, CustomBitmapDataConfig) overload instead.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, CustomBitmapDataConfig) overload for details.
EndLoad Waits for the pending asynchronous operation started by the BeginLoad method to complete. In .NET Framework 4.0 and above you can use the LoadAsync method instead.
Load Loads a managed IReadWriteBitmapData instance from the specified stream that was saved by the BitmapDataExtensions.Save method.
LoadAsync Loads a managed IReadWriteBitmapData instance from the specified stream asynchronously that was saved by the BitmapDataExtensions.Save method.

See Also