BitmapDataFactory Class

Provides factory methods to create IReadWriteBitmapData instances.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.3
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(Size, KnownPixelFormat, 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, 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, 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) 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.
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, 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, 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, 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(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, 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, 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) 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.
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.
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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Color32, ActionICustomBitmapDataRowT, Int32, Color32, Color32, Byte, Action) 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.
See the Remarks section of the CreateBitmapDataT(T, Size, Int32, PixelFormatInfo, FuncICustomBitmapDataRowT, Int32, Int32, ActionICustomBitmapDataRowT, Int32, Int32, Palette, FuncPalette, Boolean, Action) 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