BitmapDataExtensions Class

Provides extension methods for the IReadableBitmapData, IWritableBitmapData and IReadWriteBitmapData types.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public static class BitmapDataExtensions
Inheritance
Object    BitmapDataExtensions

Methods

AdjustBrightness(IReadWriteBitmapData, Single, IDitherer, ColorChannels) Adjusts the brightness of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustBrightness method for some examples with images.
AdjustBrightness(IReadWriteBitmapData, IAsyncContext, Single, IDitherer, ColorChannels) Adjusts the brightness of the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.

See the online help of the BitmapExtensions.AdjustBrightness method for some examples with images.
AdjustBrightness(IReadWriteBitmapData, Single, IDitherer, ColorChannels, ParallelConfig) Adjusts the brightness of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustBrightness method for some examples with images.
AdjustBrightnessAsync Adjusts the brightness of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustBrightness method for some examples with images.
AdjustContrast(IReadWriteBitmapData, Single, IDitherer, ColorChannels) Adjusts the contrast of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustContrast method for some examples with images.
AdjustContrast(IReadWriteBitmapData, IAsyncContext, Single, IDitherer, ColorChannels) Adjusts the contrast of the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.

See the online help of the BitmapExtensions.AdjustContrast method for some examples with images.
AdjustContrast(IReadWriteBitmapData, Single, IDitherer, ColorChannels, ParallelConfig) Adjusts the contrast of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustContrast method for some examples with images.
AdjustContrastAsync Adjusts the contrast of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustContrast method for some examples with images.
AdjustGamma(IReadWriteBitmapData, Single, IDitherer, ColorChannels) Adjusts the gamma correction of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustGamma method for some examples with images.
AdjustGamma(IReadWriteBitmapData, IAsyncContext, Single, IDitherer, ColorChannels) Adjusts the gamma correction of the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.

See the online help of the BitmapExtensions.AdjustGamma method for some examples with images.
AdjustGamma(IReadWriteBitmapData, Single, IDitherer, ColorChannels, ParallelConfig) Adjusts the gamma correction of the specified bitmapData.

See the online help of the BitmapExtensions.AdjustGamma method for some examples with images.
AdjustGammaAsync Adjusts the gamma correction of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustGamma method for some examples with images.
BeginAdjustBrightness Begins to adjust the brightness of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustBrightness method for some examples with images.
BeginAdjustContrast Begins to adjust the contrast of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustContrast method for some examples with images.
BeginAdjustGamma Begins to adjust the gamma correction of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.AdjustGamma method for some examples with images.
BeginClear Begins to clear the content of the specified bitmapData and fills it with the specified color asynchronously.
BeginClone(IReadableBitmapData, AsyncConfig) Begins to clone the specified source with identical size asynchronously.
BeginClone(IReadableBitmapData, WorkingColorSpace, AsyncConfig) Begins to clone the specified source with identical size asynchronously.
BeginClone(IReadableBitmapData, Rectangle, AsyncConfig) Begins to clone the specified portion of the specified source asynchronously.
BeginClone(IReadableBitmapData, KnownPixelFormat, Palette, NullableRectangle, AsyncConfig) Begins to clone the specified portion of source with the specified pixelFormat and palette asynchronously.
BeginClone(IReadableBitmapData, KnownPixelFormat, Color32, Byte, NullableRectangle, AsyncConfig) Begins to clone the specified portion of source with the specified pixelFormat and color settings asynchronously.
BeginClone(IReadableBitmapData, KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle, AsyncConfig) Begins to clone the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer asynchronously.
BeginClone(IReadableBitmapData, KnownPixelFormat, WorkingColorSpace, Color32, Byte, NullableRectangle, AsyncConfig) Begins to clone the specified portion of source with the specified pixelFormat and color settings asynchronously.
BeginCombine(IReadableBitmapData, IReadWriteBitmapData, FuncColor64, Color64, Color64, NullableRectangle, NullablePoint, AsyncConfig) Begins to combine the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and write the result into target.
BeginCombine(IReadableBitmapData, IReadWriteBitmapData, FuncColorF, ColorF, ColorF, NullableRectangle, NullablePoint, AsyncConfig) Begins to combine the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and write the result into target.
BeginCombine(IReadableBitmapData, IReadWriteBitmapData, FuncColor32, Color32, Color32, NullableRectangle, NullablePoint, IDitherer, AsyncConfig) Begins to combine the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and write the result into target.
BeginCopyTo Begins to copy the source IReadableBitmapData into the target IWritableBitmapData asynchronously, without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the BeginDrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the BeginCombine methods instead.
BeginDither Begins to quantize an IReadWriteBitmapData with dithering asynchronously (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
BeginDrawInto(IReadableBitmapData, IReadWriteBitmapData, NullableRectangle, NullablePoint, IQuantizer, IDitherer, AsyncConfig) Begins to draw the source IReadableBitmapData into the target IReadWriteBitmapData asynchronously, without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the BeginDrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, AsyncConfig) overload. To copy a bitmap data into another one without blending use the BeginCopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the BeginCombine methods instead.
BeginDrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, AsyncConfig) Begins to draw the source IReadableBitmapData into the target IReadWriteBitmapData asynchronously, using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the BeginCopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the BeginCombine methods instead.
BeginGetColorCount Gets the actual number of colors of the specified bitmapData asynchronously. Colors are counted even for indexed bitmaps.
BeginGetColors Begins to get the colors used in the specified bitmapData asynchronously. A limit can be defined in maxColors.
BeginInvert Begins to Invert the colors of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.Invert method for a couple of examples with images.
BeginMakeGrayscale Begins to make this bitmapData grayscale asynchronously.
BeginMakeOpaque Begins to make this bitmapData opaque asynchronously using the specified backColor.
BeginMakeTransparent(IReadWriteBitmapData, AsyncConfig) If possible, begins to make the background of this bitmapData transparent asynchronously, taking the bottom-left pixel as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set to the BackColor of bitmapData.
BeginMakeTransparent(IReadWriteBitmapData, Color32, AsyncConfig) If possible, begins to make the background of this bitmapData transparent asynchronously, using transparentColor as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as transparentColor will be set to the BackColor of bitmapData.
BeginQuantize Begins to quantize an IReadWriteBitmapData asynchronously, using the specified quantizer (reduces the number of colors).
BeginReplaceColor Begins to replace every oldColor occurrences to newColor in the specified bitmapData asynchronously.
BeginResize Begins to resize the specified source asynchronously.
BeginSave Begins to save the content of this bitmapData into the specified stream asynchronously.
BeginToGrayscale Begins to convert the specified bitmapData to grayscale asynchronously.
BeginToTransparent(IReadableBitmapData, AsyncConfig) Begins to convert the specified bitmapData to another one with transparent background asynchronously.
BeginToTransparent(IReadableBitmapData, Color32, AsyncConfig) Begins to convert the specified bitmapData to another one with transparent background asynchronously.
BeginTransformColors(IReadWriteBitmapData, FuncColor64, Color64, AsyncConfig) Begins to transform the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
BeginTransformColors(IReadWriteBitmapData, FuncColorF, ColorF, AsyncConfig) Begins to transform the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
BeginTransformColors(IReadWriteBitmapData, FuncColor32, Color32, IDitherer, AsyncConfig) Begins to transform the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
Clear(IWritableBitmapData, Color32, IDitherer) Clears the content of the specified bitmapData and fills it with the specified color.
Clear(IWritableBitmapData, Color32, IDitherer, ParallelConfig) Clears the content of the specified bitmapData and fills it with the specified color.
Clear(IWritableBitmapData, IAsyncContext, Color32, IDitherer) Clears the content of the specified bitmapData and fills it with the specified color, using a context that may belong to a higher level, possibly asynchronous operation.
ClearAsync Begins to clear the content of the specified bitmapData and fills it with the specified color asynchronously.
Clip(IReadableBitmapData, Rectangle) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source. This overload does not dispose source when the result is disposed.
See the Remarks section of the Clip(IReadableBitmapData, Rectangle, Boolean) overload for details.
Clip(IReadWriteBitmapData, Rectangle) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source. This overload does not dispose source when the result is disposed.
See the Remarks section of the Clip(IReadWriteBitmapData, Rectangle, Boolean) overload for details.
Clip(IWritableBitmapData, Rectangle) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source. This overload does not dispose source when the result is disposed.
See the Remarks section of the Clip(IWritableBitmapData, Rectangle, Boolean) overload for details.
Clip(IReadableBitmapData, Rectangle, Boolean) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source.
Clip(IReadWriteBitmapData, Rectangle, Boolean) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source.
Clip(IWritableBitmapData, Rectangle, Boolean) Clips the specified source using the specified clippingRegion. Unlike the Clone methods, this one returns a wrapper, providing access only to the specified region of the original source.
Clone(IReadableBitmapData) Gets the clone of the specified source with identical size.
Clone(IReadableBitmapData, WorkingColorSpace) Gets the clone of the specified source with identical size.
Clone(IReadableBitmapData, ParallelConfig) Gets the clone of the specified source with identical size.
Clone(IReadableBitmapData, Rectangle) Gets the clone of the specified portion of source.
Clone(IReadableBitmapData, KnownPixelFormat, IDitherer) Gets the clone of the specified source with identical size and the specified pixelFormat, using an optional ditherer.
Clone(IReadableBitmapData, KnownPixelFormat, Palette) Gets the clone of the specified source with identical size and the specified pixelFormat and palette.
Clone(IReadableBitmapData, WorkingColorSpace, ParallelConfig) Gets the clone of the specified source with identical size.
Clone(IReadableBitmapData, IAsyncContext, NullableRectangle) Gets the clone of the specified portion of source, using a context that may belong to a higher level, possibly asynchronous operation.
Clone(IReadableBitmapData, Rectangle, ParallelConfig) Gets the clone of the specified portion of source.
Clone(IReadableBitmapData, KnownPixelFormat, Color32, Byte) Gets the clone of the specified source with identical size and the specified pixelFormat and color settings.
Clone(IReadableBitmapData, KnownPixelFormat, IQuantizer, IDitherer) Gets the clone of the specified source with identical size and the specified pixelFormat, using an optional quantizer and ditherer.
Clone(IReadableBitmapData, KnownPixelFormat, Palette, ParallelConfig) Gets the clone of the specified source with identical size and the specified pixelFormat and palette.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, IDitherer) Gets the clone of the specified portion of source with the specified pixelFormat, using an optional ditherer.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, Palette) Gets the clone of the specified portion of source with the specified pixelFormat and palette.
Clone(IReadableBitmapData, KnownPixelFormat, Color32, Byte, ParallelConfig) Gets the clone of the specified source with identical size and the specified pixelFormat and color settings.
Clone(IReadableBitmapData, KnownPixelFormat, IQuantizer, IDitherer, ParallelConfig) Gets the clone of the specified source with identical size and the specified pixelFormat, using an optional quantizer and ditherer.
Clone(IReadableBitmapData, KnownPixelFormat, WorkingColorSpace, Color32, Byte) Gets the clone of the specified source with identical size and the specified pixelFormat and color settings.
Clone(IReadableBitmapData, IAsyncContext, KnownPixelFormat, Palette, NullableRectangle) Gets the clone of the specified portion of source with the specified pixelFormat and palette, using a context that may belong to a higher level, possibly asynchronous operation.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, Color32, Byte) Gets the clone of the specified portion of source with the specified pixelFormat and color settings.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, IQuantizer, IDitherer) Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, Palette, ParallelConfig) Gets the clone of the specified portion of source with the specified pixelFormat and palette.
Clone(IReadableBitmapData, KnownPixelFormat, WorkingColorSpace, Color32, Byte, ParallelConfig) Gets the clone of the specified source with identical size and the specified pixelFormat and color settings.
Clone(IReadableBitmapData, IAsyncContext, KnownPixelFormat, Color32, Byte, NullableRectangle) Gets the clone of the specified portion of source with the specified pixelFormat and color settings, using a context that may belong to a higher level, possibly asynchronous operation.
Clone(IReadableBitmapData, IAsyncContext, KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle) Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer, along with a context that may belong to a higher level, possibly asynchronous operation.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, Color32, Byte, ParallelConfig) Gets the clone of the specified portion of source with the specified pixelFormat and color settings.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, IQuantizer, IDitherer, ParallelConfig) Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, WorkingColorSpace, Color32, Byte) Gets the clone of the specified portion of source with the specified pixelFormat and color settings.
Clone(IReadableBitmapData, IAsyncContext, KnownPixelFormat, WorkingColorSpace, Color32, Byte, NullableRectangle) Gets the clone of the specified portion of source with the specified pixelFormat and color settings, using a context that may belong to a higher level, possibly asynchronous operation.
Clone(IReadableBitmapData, Rectangle, KnownPixelFormat, WorkingColorSpace, Color32, Byte, ParallelConfig) Gets the clone of the specified portion of source with the specified pixelFormat and color settings.
CloneAsync(IReadableBitmapData, TaskConfig) Gets the clone of the specified source with identical size asynchronously.
CloneAsync(IReadableBitmapData, WorkingColorSpace, TaskConfig) Gets the clone of the specified source with identical size asynchronously.
CloneAsync(IReadableBitmapData, Rectangle, TaskConfig) Gets the clone of the specified portion of the specified source asynchronously.
CloneAsync(IReadableBitmapData, KnownPixelFormat, Palette, NullableRectangle, TaskConfig) Gets the clone of the specified portion of source with the specified pixelFormat and palette asynchronously.
CloneAsync(IReadableBitmapData, KnownPixelFormat, Color32, Byte, NullableRectangle, TaskConfig) Gets the clone of the specified portion of source with the specified pixelFormat and color settings asynchronously.
CloneAsync(IReadableBitmapData, KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle, TaskConfig) Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer asynchronously.
CloneAsync(IReadableBitmapData, KnownPixelFormat, WorkingColorSpace, Color32, Byte, NullableRectangle, TaskConfig) Gets the clone of the specified portion of source with the specified pixelFormat and color settings asynchronously.
Combine(IReadableBitmapData, IReadWriteBitmapData, IAsyncContext, FuncColor64, Color64, Color64, NullableRectangle, NullablePoint) Combines the pixels of the source and target bitmaps using the specified combineFunction and a context that may belong to a higher level, possibly asynchronous operation, and writes the result into target.
Combine(IReadableBitmapData, IReadWriteBitmapData, IAsyncContext, FuncColorF, ColorF, ColorF, NullableRectangle, NullablePoint) Combines the pixels of the source and target bitmaps using the specified combineFunction and a context that may belong to a higher level, possibly asynchronous operation, and writes the result into target.
Combine(IReadableBitmapData, IReadWriteBitmapData, FuncColor64, Color64, Color64, NullableRectangle, NullablePoint, ParallelConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction, and writes the result into target.
Combine(IReadableBitmapData, IReadWriteBitmapData, FuncColorF, ColorF, ColorF, NullableRectangle, NullablePoint, ParallelConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction, and writes the result into target.
Combine(IReadableBitmapData, IReadWriteBitmapData, IAsyncContext, FuncColor32, Color32, Color32, NullableRectangle, NullablePoint, IDitherer) Combines the pixels of the source and target bitmaps using the specified combineFunction and a context that may belong to a higher level, possibly asynchronous operation, and writes the result into target.
Combine(IReadableBitmapData, IReadWriteBitmapData, FuncColor32, Color32, Color32, NullableRectangle, NullablePoint, IDitherer, ParallelConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction, and writes the result into target.
CombineAsync(IReadableBitmapData, IReadWriteBitmapData, FuncColor64, Color64, Color64, NullableRectangle, NullablePoint, TaskConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and writes the result into target.
CombineAsync(IReadableBitmapData, IReadWriteBitmapData, FuncColorF, ColorF, ColorF, NullableRectangle, NullablePoint, TaskConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and writes the result into target.
CombineAsync(IReadableBitmapData, IReadWriteBitmapData, FuncColor32, Color32, Color32, NullableRectangle, NullablePoint, IDitherer, TaskConfig) Combines the pixels of the source and target bitmaps using the specified combineFunction asynchronously, and writes the result into target.
CopyTo(IReadableBitmapData, IWritableBitmapData, Point, IDitherer) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyTo(IReadableBitmapData, IWritableBitmapData, Point, IQuantizer, IDitherer) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyTo(IReadableBitmapData, IWritableBitmapData, Rectangle, Point, IDitherer) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyTo(IReadableBitmapData, IWritableBitmapData, Point, IQuantizer, IDitherer, ParallelConfig) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyTo(IReadableBitmapData, IWritableBitmapData, Rectangle, Point, IQuantizer, IDitherer) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyTo(IReadableBitmapData, IWritableBitmapData, IAsyncContext, Rectangle, Point, IQuantizer, IDitherer) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending, using a context that may belong to a higher level, possibly asynchronous operation.
CopyTo(IReadableBitmapData, IWritableBitmapData, Rectangle, Point, IQuantizer, IDitherer, ParallelConfig) Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawInto methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
CopyToAsync Copies the source IReadableBitmapData into the target IWritableBitmapData asynchronously, without scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To draw a bitmap data into another one with blending use the DrawIntoAsync methods, or to use custom a function to specify how the source and target pixels should be combined, use the CombineAsync methods instead.
Dither(IReadWriteBitmapData, IQuantizer, IDitherer) Quantizes an IReadWriteBitmapData with dithering (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
Dither(IReadWriteBitmapData, IQuantizer, IDitherer, ParallelConfig) Quantizes an IReadWriteBitmapData with dithering (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
Dither(IReadWriteBitmapData, IAsyncContext, IQuantizer, IDitherer) Quantizes an IReadWriteBitmapData with the specified quantizer and ditherer, using a context that may belong to a higher level, possibly asynchronous operation.
DitherAsync Quantizes an IReadWriteBitmapData with dithering asynchronously (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Point, IDitherer) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing. To copy a bitmap data into another one without blending use the CopyTo methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Point, IQuantizer, IDitherer) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, IDitherer, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Point, IDitherer) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Point, IQuantizer, IDitherer, ParallelConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, IQuantizer, IDitherer, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Point, IQuantizer, IDitherer) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IDitherer, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, IAsyncContext, Rectangle, Point, IQuantizer, IDitherer) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using a context that may belong to a higher level, possibly asynchronous operation.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, IQuantizer, IDitherer, ScalingMode, ParallelConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Point, IQuantizer, IDitherer, ParallelConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the overloads with targetRectangle and ScalingMode parameters. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, IAsyncContext, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode) Draws the source IReadableBitmapData into the target IReadWriteBitmapData with scaling and blending, using a context that may belong to a higher level, possibly asynchronous operation.
DrawInto(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, ParallelConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyTo methods, or to use custom a function to specify how the source and target pixels should be combined, use the Combine methods instead.
DrawIntoAsync(IReadableBitmapData, IReadWriteBitmapData, NullableRectangle, NullablePoint, IQuantizer, IDitherer, TaskConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData asynchronously, without scaling, using blending. This method always preserves the source size in pixels, works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. For scaling use the DrawIntoAsync(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, TaskConfig) overload. To copy a bitmap data into another one without blending use the CopyToAsync methods, or to use custom a function to specify how the source and target pixels should be combined, use the CombineAsync methods instead.
DrawIntoAsync(IReadableBitmapData, IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, TaskConfig) Draws the source IReadableBitmapData into the target IReadWriteBitmapData asynchronously, using scaling and blending. This method works between any pair of source and target KnownPixelFormats and supports quantizing and dithering. To copy a bitmap data into another one without blending use the CopyToAsync methods, or to use custom a function to specify how the source and target pixels should be combined, use the CombineAsync methods instead.
EndAdjustBrightness Waits for the pending asynchronous operation started by the BeginAdjustBrightness method to complete. In .NET Framework 4.0 and above you can use the AdjustBrightnessAsync method instead.
EndAdjustContrast Waits for the pending asynchronous operation started by the BeginAdjustContrast method to complete. In .NET Framework 4.0 and above you can use the AdjustContrastAsync method instead.
EndAdjustGamma Waits for the pending asynchronous operation started by the BeginAdjustGamma method to complete. In .NET Framework 4.0 and above you can use the AdjustGammaAsync method instead.
EndClear Waits for the pending asynchronous operation started by the BeginClear method to complete. In .NET Framework 4.0 and above you can use the ClearAsync method instead.
EndClone Waits for the pending asynchronous operation started by the BeginClone methods to complete. In .NET Framework 4.0 and above you can use the CloneAsync methods instead.
EndCombine Waits for the pending asynchronous operation started by one of the BeginCombine overloads to complete. In .NET Framework 4.0 and above you can use the CombineAsync methods instead.
EndCopyTo Waits for the pending asynchronous operation started by the BeginCopyTo method to complete. In .NET Framework 4.0 and above you can use the CopyToAsync method instead.
EndDither Waits for the pending asynchronous operation started by the BeginDither method to complete. In .NET Framework 4.0 and above you can use the QuantizeAsync method instead.
EndDrawInto Waits for the pending asynchronous operation started by the BeginDrawInto methods to complete. In .NET Framework 4.0 and above you can use the DrawIntoAsync methods instead.
EndGetColorCount Waits for the pending asynchronous operation started by the BeginGetColorCount method to complete. In .NET Framework 4.0 and above you can use the GetColorCountAsync method instead.
EndGetColors Waits for the pending asynchronous operation started by the BeginGetColors method to complete. In .NET Framework 4.0 and above you can use the GetColorsAsync method instead.
EndInvert Waits for the pending asynchronous operation started by the BeginInvert method to complete. In .NET Framework 4.0 and above you can use the InvertAsync method instead.
EndMakeGrayscale Waits for the pending asynchronous operation started by the BeginMakeGrayscale method to complete. In .NET Framework 4.0 and above you can use the MakeGrayscaleAsync method instead.
EndMakeOpaque Waits for the pending asynchronous operation started by the BeginMakeOpaque method to complete. In .NET Framework 4.0 and above you can use the MakeOpaqueAsync method instead.
EndMakeTransparent Waits for the pending asynchronous operation started by the BeginMakeTransparent methods to complete. In .NET Framework 4.0 and above you can use the MakeTransparentAsync methods instead.
EndQuantize Waits for the pending asynchronous operation started by the BeginQuantize method to complete. In .NET Framework 4.0 and above you can use the QuantizeAsync method instead.
EndReplaceColor Waits for the pending asynchronous operation started by the BeginReplaceColor method to complete. In .NET Framework 4.0 and above you can use the ReplaceColorAsync method instead.
EndResize Waits for the pending asynchronous operation started by the BeginResize method to complete. In .NET Framework 4.0 and above you can use the ResizeAsync method instead.
EndSave Waits for the pending asynchronous operation started by the BeginSave method to complete. In .NET Framework 4.0 and above you can use the SaveAsync method instead.
EndToGrayscale Waits for the pending asynchronous operation started by the BeginToGrayscale method to complete. In .NET Framework 4.0 and above you can use the ToGrayscaleAsync method instead.
EndToTransparent Waits for the pending asynchronous operation started by the BeginToTransparent methods to complete. In .NET Framework 4.0 and above you can use the ToTransparentAsync methods instead.
EndTransformColors Waits for the pending asynchronous operation started by the one of the BeginTransformColors overloads to complete. In .NET Framework 4.0 and above you can use the TransformColorsAsync methods instead.
GetColorCount Gets the actual number of colors of the specified bitmapData. Colors are counted even for indexed bitmaps.
GetColorCountAsync Gets the actual number of colors of the specified bitmapData asynchronously. Colors are counted even for indexed bitmaps.
GetColors Gets the colors used in the specified bitmapData. A limit can be defined in maxColors.
GetColorsAsync Gets the colors used in the specified bitmapData asynchronously. A limit can be defined in maxColors.
GetPreferredColorSpace Gets a non-default WorkingColorSpace that can be used when working with the specified bitmapData.
Invert(IReadWriteBitmapData, IDitherer) Inverts the colors of the specified bitmapData.

See the online help of the BitmapExtensions.Invert method for a couple of examples with images.
Invert(IReadWriteBitmapData, IDitherer, ParallelConfig) Inverts the colors of the specified bitmapData.

See the online help of the BitmapExtensions.Invert method for a couple of examples with images.
Invert(IReadWriteBitmapData, IAsyncContext, IDitherer) Inverts the colors of the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.

See the online help of the BitmapExtensions.Invert method for a couple of examples with images.
InvertAsync Inverts the colors of the specified bitmapData asynchronously.

See the online help of the BitmapExtensions.Invert method for a couple of examples with images.
MakeGrayscale(IReadWriteBitmapData, IDitherer) Makes this bitmapData grayscale.
MakeGrayscale(IReadWriteBitmapData, IDitherer, ParallelConfig) Makes this bitmapData grayscale.
MakeGrayscale(IReadWriteBitmapData, IAsyncContext, IDitherer) Makes this bitmapData grayscale, using a context that may belong to a higher level, possibly asynchronous operation.
MakeGrayscaleAsync Makes this bitmapData grayscale asynchronously.
MakeOpaque(IReadWriteBitmapData, Color32, IDitherer) Makes this bitmapData opaque using the specified backColor.
MakeOpaque(IReadWriteBitmapData, Color32, IDitherer, ParallelConfig) Makes this bitmapData opaque using the specified backColor.
MakeOpaque(IReadWriteBitmapData, IAsyncContext, Color32, IDitherer) Makes this bitmapData opaque using the specified backColor, using a context that may belong to a higher level, possibly asynchronous operation.
MakeOpaqueAsync Makes this bitmapData opaque asynchronously using the specified backColor.
MakeTransparent(IReadWriteBitmapData) If possible, makes the background of this bitmapData transparent, taking the bottom-left pixel as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set to the BackColor of bitmapData.
MakeTransparent(IReadWriteBitmapData, Color32) If possible, makes the background of this bitmapData transparent, using transparentColor as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as transparentColor will be set to the BackColor of bitmapData.
MakeTransparent(IReadWriteBitmapData, IAsyncContext) If possible, makes the background of this bitmapData transparent, taking the bottom-left pixel as the background color, and using a context that may belong to a higher level, possibly asynchronous operation. If the bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set to the BackColor of bitmapData.
MakeTransparent(IReadWriteBitmapData, ParallelConfig) If possible, makes the background of this bitmapData transparent, taking the bottom-left pixel as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set to the BackColor of bitmapData.
MakeTransparent(IReadWriteBitmapData, Color32, ParallelConfig) If possible, makes the background of this bitmapData transparent, using transparentColor as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as transparentColor will be set to the BackColor of bitmapData.
MakeTransparent(IReadWriteBitmapData, IAsyncContext, Color32) If possible, makes the background of this bitmapData transparent, using transparentColor as the background color, and using a context that may belong to a higher level, possibly asynchronous operation. If the bitmapData does not support transparency, then the pixels that have the same color as transparentColor will be set to the BackColor of bitmapData.
MakeTransparentAsync(IReadWriteBitmapData, TaskConfig) If possible, makes the background of this bitmapData transparent asynchronously, taking the bottom-left pixel as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as the bottom-left pixel will be set to the BackColor of bitmapData.
MakeTransparentAsync(IReadWriteBitmapData, Color32, TaskConfig) If possible, makes the background of this bitmapData transparent asynchronously, using transparentColor as the background color. If the bitmapData does not support transparency, then the pixels that have the same color as transparentColor will be set to the BackColor of bitmapData.
Quantize(IReadWriteBitmapData, IQuantizer) Quantizes an IReadWriteBitmapData using the specified quantizer (reduces the number of colors).
Quantize(IReadWriteBitmapData, IQuantizer, ParallelConfig) Quantizes an IReadWriteBitmapData using the specified quantizer (reduces the number of colors).
Quantize(IReadWriteBitmapData, IAsyncContext, IQuantizer) Quantizes an IReadWriteBitmapData with the specified quantizer (reduces the number of colors), using a context that may belong to a higher level, possibly asynchronous operation.
QuantizeAsync Quantizes an IReadWriteBitmapData asynchronously, using the specified quantizer (reduces the number of colors).
ReplaceColor(IReadWriteBitmapData, Color32, Color32, IDitherer) Replaces every oldColor occurrences to newColor in the specified bitmapData.
ReplaceColor(IReadWriteBitmapData, Color32, Color32, IDitherer, ParallelConfig) Replaces every oldColor occurrences to newColor in the specified bitmapData.
ReplaceColor(IReadWriteBitmapData, IAsyncContext, Color32, Color32, IDitherer) Replaces every oldColor occurrences to newColor in the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.
ReplaceColorAsync Replaces every oldColor occurrences to newColor in the specified bitmapData asynchronously.
Resize(IReadableBitmapData, Size, ScalingMode, Boolean) Resizes the specified source.
Resize(IReadableBitmapData, IAsyncContext, Size, ScalingMode, Boolean) Resizes the specified source, using a context that may belong to a higher level, possibly asynchronous operation.
Resize(IReadableBitmapData, Size, ScalingMode, Boolean, ParallelConfig) Resizes the specified source.
ResizeAsync Resizes the specified source asynchronously.
Save Saves the content of this bitmapData into the specified stream.
SaveAsync Saves the content of this bitmapData into the specified stream asynchronously.
ToGrayscale(IReadableBitmapData) Returns a new IReadWriteBitmapData, which is the grayscale version of the specified bitmapData.
ToGrayscale(IReadableBitmapData, IAsyncContext) Returns a new IReadWriteBitmapData, which is the grayscale version of the specified bitmapData, using a context that may belong to a higher level, possibly asynchronous operation.
ToGrayscale(IReadableBitmapData, ParallelConfig) Returns a new IReadWriteBitmapData, which is the grayscale version of the specified bitmapData.
ToGrayscaleAsync Returns a new IReadWriteBitmapData asynchronously, which is the grayscale version of the specified bitmapData.
ToTransparent(IReadableBitmapData) Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
ToTransparent(IReadableBitmapData, Color32) Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
ToTransparent(IReadableBitmapData, IAsyncContext) Returns a new IReadWriteBitmapData with transparent background, using a context that may belong to a higher level, possibly asynchronous operation.
ToTransparent(IReadableBitmapData, ParallelConfig) Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
ToTransparent(IReadableBitmapData, Color32, ParallelConfig) Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
ToTransparent(IReadableBitmapData, IAsyncContext, Color32) Returns a new IReadWriteBitmapData with transparent background, using a context that may belong to a higher level, possibly asynchronous operation.
ToTransparentAsync(IReadableBitmapData, TaskConfig) Returns a new IReadWriteBitmapData asynchronously, which is the clone of the specified bitmapData with transparent background.
ToTransparentAsync(IReadableBitmapData, Color32, TaskConfig) Returns a new IReadWriteBitmapData asynchronously, which is the clone of the specified bitmapData with transparent background.
TransformColors(IReadWriteBitmapData, FuncColor32, Color32) Transforms the colors of this bitmapData using the specified transformFunction delegate.
TransformColors(IReadWriteBitmapData, IAsyncContext, FuncColor64, Color64) Transforms the colors of this bitmapData using the specified transformFunction delegate and a context that may belong to a higher level, possibly asynchronous operation.
TransformColors(IReadWriteBitmapData, IAsyncContext, FuncColorF, ColorF) Transforms the colors of this bitmapData using the specified transformFunction delegate and a context that may belong to a higher level, possibly asynchronous operation.
TransformColors(IReadWriteBitmapData, FuncColor32, Color32, IDitherer) Transforms the colors of this bitmapData using the specified transformFunction delegate.
TransformColors(IReadWriteBitmapData, FuncColor64, Color64, ParallelConfig) Transforms the colors of this bitmapData using the specified transformFunction delegate.
TransformColors(IReadWriteBitmapData, FuncColorF, ColorF, ParallelConfig) Transforms the colors of this bitmapData using the specified transformFunction delegate.
TransformColors(IReadWriteBitmapData, IAsyncContext, FuncColor32, Color32, IDitherer) Transforms the colors of this bitmapData using the specified transformFunction delegate and a context that may belong to a higher level, possibly asynchronous operation.
TransformColors(IReadWriteBitmapData, FuncColor32, Color32, IDitherer, ParallelConfig) Transforms the colors of this bitmapData using the specified transformFunction delegate.
TransformColorsAsync(IReadWriteBitmapData, FuncColor64, Color64, TaskConfig) Transforms the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
TransformColorsAsync(IReadWriteBitmapData, FuncColorF, ColorF, TaskConfig) Transforms the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
TransformColorsAsync(IReadWriteBitmapData, FuncColor32, Color32, IDitherer, TaskConfig) Transforms the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
TrySetPalette Tries to the set the specified palette for this IWritableBitmapData.

See Also