IReadWriteBitmapData Interface

KGy SOFT Drawing Libraries Help
Represents an IBitmapData instance with read/write access. To create an instance use the BitmapDataFactory class or the GetReadWriteBitmapData extension methods for various platform dependent bitmap implementations.
See the Remarks section of the KGySoft.Drawing namespace for a list about the technologies with dedicated support.
See the Remarks section of the BitmapExtensions.GetReadWriteBitmapData method for details and code samples. That method is for the GDI+ Bitmap type but the main principles apply for all sources.

Namespace:  KGySoft.Drawing.Imaging
Assembly:  KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 7.0.0-preview.2
Syntax

public interface IReadWriteBitmapData : IReadableBitmapData, 
	IBitmapData, IDisposable, IWritableBitmapData

The IReadWriteBitmapData type exposes the following members.

Properties

  NameDescription
Public propertyAlphaThreshold
If this IBitmapData represents a bitmap with single bit alpha or with a palette that has a transparent color, then gets a threshold value for the Color32.A property, under which the color is considered transparent. If 0, then the pixels to be set will never be transparent.
(Inherited from IBitmapData.)
Public propertyBackColor
When accessing pixels of indexed bitmaps, or setting pixels of bitmaps without alpha support, gets the color of the background. For example, when setting color values with alpha, which are considered opaque, they will be blended with this color before setting the pixel.
See the Remarks section of the GetReadWriteBitmapData extension method for details and examples.
(Inherited from IBitmapData.)
Public propertyFirstRow
Gets an IReadWriteBitmapDataRow instance representing the first row of the current IReadWriteBitmapData. Subsequent rows can be accessed by calling the MoveNextRow method on the returned instance while it returns . Alternatively, you can use the indexer to obtain any row.
See the Examples section of the GetReadWriteBitmapData method for examples.
Public propertyHeight
Gets the height of the current IBitmapData instance in pixels.
(Inherited from IBitmapData.)
Public propertyIsDisposed
Gets whether this IBitmapData instance is disposed.
(Inherited from IBitmapData.)
Public propertyItem
Gets an IReadWriteBitmapDataRow representing the row of the specified y coordinate in the current IReadWriteBitmapData. When obtaining the same row repeatedly, then a cached instance is returned. To get a movable row use the GetMovableRow method instead.
See the Examples section of the GetReadWriteBitmapData method for examples.
Public propertyPalette
Gets a Palette instance representing the colors used in this IBitmapData if PixelFormat represents an indexed format. For indexed bitmaps Indexed property of PixelFormat returns .
(Inherited from IBitmapData.)
Public propertyPixelFormat
Gets a PixelFormatInfo of the current IBitmapData instance.
See the Remarks section for details.
(Inherited from IBitmapData.)
Public propertyRowSize
Gets the size of a row in bytes, or zero, if this IBitmapData instance does not have an actual raw buffer to access.
See the Remarks section for details.
(Inherited from IBitmapData.)
Public propertySize
Gets the size of the current IBitmapData instance in pixels.
(Inherited from IBitmapData.)
Public propertyWidth
Gets the width of the current IBitmapData instance in pixels.
(Inherited from IBitmapData.)
Top
Methods

  NameDescription
Public methodGetColor32
Gets the color of the pixel at the specified coordinates as a Color32 value.
See the Remarks section of the GetPixel method for details.
(Inherited from IReadableBitmapData.)
Public methodGetMovableRow
Gets an IReadWriteBitmapDataRowMovable instance representing the row of the specified y coordinate in the current IReadWriteBitmapData. Unlike the indexer, this method always allocates a new instance.
Public methodGetPixel
Gets the color of the pixel at the specified coordinates.
See the Remarks section for details.
(Inherited from IReadableBitmapData.)
Public methodSetColor32
Sets the color of the pixel at the specified coordinates using a Color32 value.
See the Remarks section of the SetPixel method for details.
(Inherited from IWritableBitmapData.)
Public methodSetPixel
Sets the color of the pixel at the specified coordinates.
See the Remarks section for details.
(Inherited from IWritableBitmapData.)
Top
Extension Methods

  NameDescription
Public Extension MethodAdjustBrightness
Adjusts the brightness of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodAdjustBrightnessAsync
Adjusts the brightness of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodAdjustContrast
Adjusts the contrast of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodAdjustContrastAsync
Adjusts the contrast of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodAdjustGamma
Adjusts the gamma correction of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodAdjustGammaAsync
Adjusts the gamma correction of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginAdjustBrightness
Begins to adjust the brightness of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginAdjustContrast
Begins to adjust the contrast of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginAdjustGamma
Begins to adjust the gamma correction of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClear
Begins to clear the content of the specified bitmapData and fills it with the specified color asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClone(AsyncConfig)Overloaded.
Begins to clone the specified source with identical size asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClone(Rectangle, AsyncConfig)Overloaded.
Begins to clone the specified portion of the specified source asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClone(KnownPixelFormat, Palette, NullableRectangle, AsyncConfig)Overloaded.
Begins to clone the specified portion of source with the specified pixelFormat and palette asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClone(KnownPixelFormat, Color32, Byte, NullableRectangle, AsyncConfig)Overloaded.
Begins to clone the specified portion of source with the specified pixelFormat and color settings asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginClone(KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle, AsyncConfig)Overloaded.
Begins to clone the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginCopyTo
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginDither
Begins to quantize an IReadWriteBitmapData with dithering asynchronously (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginDrawInto(IReadWriteBitmapData, NullableRectangle, NullablePoint, IQuantizer, IDitherer, AsyncConfig)Overloaded.
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 method instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginDrawInto(IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, AsyncConfig)Overloaded.
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 method instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginGetColorCount
Gets the actual number of colors of the specified bitmapData asynchronously. Colors are counted even for indexed bitmaps.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginGetColors
Begins to get the colors used in the specified bitmapData asynchronously. A limit can be defined in maxColors.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginInvert
Begins to Invert the colors of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginMakeGrayscale
Begins to make this bitmapData grayscale asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginMakeOpaque
Begins to make this bitmapData opaque asynchronously using the specified backColor.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginMakeTransparent(AsyncConfig)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginMakeTransparent(Color32, AsyncConfig)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginQuantize
Begins to quantize an IReadWriteBitmapData asynchronously, using the specified quantizer (reduces the number of colors).
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginReplaceColor
Begins to replace every oldColor occurrences to newColor in the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginSave
Begins to save the content of this bitmapData into the specified stream asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginToBitmap
Begins to convert the specified source to a Bitmap asynchronously.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodBeginToGrayscale
Begins to convert the specified bitmapData to grayscale asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginToTransparent(AsyncConfig)Overloaded.
Begins to convert the specified bitmapData to another one with transparent background asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginToTransparent(Color32, AsyncConfig)Overloaded.
Begins to convert the specified bitmapData to another one with transparent background asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodBeginToWriteableBitmap
Begins to convert the specified source to a WriteableBitmap asynchronously.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodBeginTransformColors
Begins to transform the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClear(Color32, IDitherer)Overloaded.
Clears the content of the specified bitmapData and fills it with the specified color.
(Defined by BitmapDataExtensions.)
Public Extension MethodClear(IAsyncContext, Color32, IDitherer)Overloaded.
Clears the content of the specified bitmapData and fills it with the specified color inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClearAsync
Begins to clear the content of the specified bitmapData and fills it with the specified color asynchronously.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle)Overloaded.
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.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle)Overloaded.
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.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle)Overloaded.
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.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle, Boolean)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle, Boolean)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClip(Rectangle, Boolean)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneOverloaded.
Gets the clone of the specified source with identical size.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(Rectangle)Overloaded.
Gets the clone of the specified portion of source.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(IAsyncContext, NullableRectangle)Overloaded.
Gets the clone of the specified portion of source inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(KnownPixelFormat, Palette)Overloaded.
Gets the clone of the specified source with identical size and the specified pixelFormat and palette.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(KnownPixelFormat, IDitherer)Overloaded.
Gets the clone of the specified source with identical size and the specified pixelFormat, using an optional ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(KnownPixelFormat, Color32, Byte)Overloaded.
Gets the clone of the specified source with identical size and the specified pixelFormat and color settings.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(KnownPixelFormat, IQuantizer, IDitherer)Overloaded.
Gets the clone of the specified source with identical size and the specified pixelFormat, using an optional quantizer and ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(Rectangle, KnownPixelFormat, Palette)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and palette.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(Rectangle, KnownPixelFormat, IDitherer)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat, using an optional ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(IAsyncContext, KnownPixelFormat, Palette, NullableRectangle)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and palette inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(Rectangle, KnownPixelFormat, Color32, Byte)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and color settings.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(Rectangle, KnownPixelFormat, IQuantizer, IDitherer)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(IAsyncContext, KnownPixelFormat, Color32, Byte, NullableRectangle)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and color settings inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodClone(IAsyncContext, KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneAsync(TaskConfig)Overloaded.
Gets the clone of the specified source with identical size asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneAsync(Rectangle, TaskConfig)Overloaded.
Gets the clone of the specified portion of the specified source asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneAsync(KnownPixelFormat, Palette, NullableRectangle, TaskConfig)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and palette asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneAsync(KnownPixelFormat, Color32, Byte, NullableRectangle, TaskConfig)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat and color settings asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCloneAsync(KnownPixelFormat, IQuantizer, IDitherer, NullableRectangle, TaskConfig)Overloaded.
Gets the clone of the specified portion of source with the specified pixelFormat, using an optional quantizer and ditherer asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyTo(IWritableBitmapData, Point, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyTo(IWritableBitmapData, Point, IQuantizer, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyTo(IWritableBitmapData, Rectangle, Point, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyTo(IWritableBitmapData, Rectangle, Point, IQuantizer, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyTo(IWritableBitmapData, IAsyncContext, Rectangle, Point, IQuantizer, IDitherer)Overloaded.
Copies the source IReadableBitmapData into the target IWritableBitmapData without scaling and blending, inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodCopyToAsync
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDither(IQuantizer, IDitherer)Overloaded.
Quantizes an IReadWriteBitmapData with dithering (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDither(IAsyncContext, IQuantizer, IDitherer)Overloaded.
Quantizes an IReadWriteBitmapData with dithering (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDitherAsync
Quantizes an IReadWriteBitmapData with dithering asynchronously (reduces the number of colors while trying to preserve details) using the specified quantizer and ditherer.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Point, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, ScalingMode)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Point, IQuantizer, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, Point, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, IDitherer, ScalingMode)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, Rectangle, ScalingMode)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, Point, IQuantizer, IDitherer)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, IQuantizer, IDitherer, ScalingMode)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, Rectangle, IDitherer, ScalingMode)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, IAsyncContext, Rectangle, Point, IQuantizer, IDitherer)Overloaded.
Draws the source IReadableBitmapData into the target IReadWriteBitmapData without scaling, using blending inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode)Overloaded.
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 instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawInto(IReadWriteBitmapData, IAsyncContext, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode)Overloaded.
Draws the source IReadableBitmapData into the target IReadWriteBitmapData using scaling and blending, inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawIntoAsync(IReadWriteBitmapData, NullableRectangle, NullablePoint, IQuantizer, IDitherer, TaskConfig)Overloaded.
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 method instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodDrawIntoAsync(IReadWriteBitmapData, Rectangle, Rectangle, IQuantizer, IDitherer, ScalingMode, TaskConfig)Overloaded.
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 method instead.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodGetColorCount
Gets the actual number of colors of the specified bitmapData. Colors are counted even for indexed bitmaps.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodGetColorCountAsync
Gets the actual number of colors of the specified bitmapData asynchronously. Colors are counted even for indexed bitmaps.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodGetColors
Gets the colors used in the specified bitmapData. A limit can be defined in maxColors.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodGetColorsAsync
Gets the colors used in the specified bitmapData asynchronously. A limit can be defined in maxColors.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodInvert
Inverts the colors of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodInvertAsync
Inverts the colors of the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeGrayscale
Makes this bitmapData grayscale.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeGrayscaleAsync
Makes this bitmapData grayscale asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeOpaque
Makes this bitmapData opaque using the specified backColor.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeOpaqueAsync
Makes this bitmapData opaque asynchronously using the specified backColor.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeTransparentOverloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeTransparent(Color32)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeTransparentAsync(TaskConfig)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodMakeTransparentAsync(Color32, TaskConfig)Overloaded.
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.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodQuantize(IQuantizer)Overloaded.
Quantizes an IReadWriteBitmapData using the specified quantizer (reduces the number of colors).
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodQuantize(IAsyncContext, IQuantizer)Overloaded.
Quantizes an IReadWriteBitmapData using the specified quantizer (reduces the number of colors) inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodQuantizeAsync
Quantizes an IReadWriteBitmapData asynchronously, using the specified quantizer (reduces the number of colors).
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodReplaceColor
Replaces every oldColor occurrences to newColor in the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodReplaceColorAsync
Replaces every oldColor occurrences to newColor in the specified bitmapData asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodSave
Saves the content of this bitmapData into the specified stream.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodSaveAsync
Saves the content of this bitmapData into the specified stream asynchronously.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToBitmap
Converts the specified source to a Bitmap.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodToBitmapAsync
Converts the specified source to a Bitmap asynchronously.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodToGrayscale
Returns a new IReadWriteBitmapData, which is the grayscale version of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToGrayscaleAsync
Returns a new IReadWriteBitmapData asynchronously, which is the grayscale version of the specified bitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToTransparentOverloaded.
Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToTransparent(Color32)Overloaded.
Returns a new IReadWriteBitmapData, which is the clone of the specified bitmapData with transparent background.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToTransparentAsync(TaskConfig)Overloaded.
Returns a new IReadWriteBitmapData asynchronously, which is the clone of the specified bitmapData with transparent background.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToTransparentAsync(Color32, TaskConfig)Overloaded.
Returns a new IReadWriteBitmapData asynchronously, which is the clone of the specified bitmapData with transparent background.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodToWriteableBitmapOverloaded.
Converts the specified source to a WriteableBitmap.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodToWriteableBitmapOverloaded.
Converts the specified source to a WriteableBitmap.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodToWriteableBitmapAsync(TaskConfig)Overloaded.
Converts the specified source to a WriteableBitmap asynchronously.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodToWriteableBitmapAsync(TaskConfig)Overloaded.
Converts the specified source to a WriteableBitmap asynchronously.
See the Remarks section for details.
(Defined by ReadableBitmapDataExtensions.)
Public Extension MethodTransformColors(FuncColor32, Color32)Overloaded.
Transforms the colors of this bitmapData using the specified transformFunction delegate.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodTransformColors(FuncColor32, Color32, IDitherer)Overloaded.
Transforms the colors of this bitmapData using the specified transformFunction delegate.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodTransformColors(IAsyncContext, FuncColor32, Color32, IDitherer)Overloaded.
Transforms the colors of this bitmapData using the specified transformFunction delegate inside of an already created, possibly asynchronous context.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodTransformColorsAsync
Transforms the colors of this bitmapData asynchronously, using the specified transformFunction delegate.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Public Extension MethodTrySetPalette
Tries to the set the specified palette for this IWritableBitmapData.
See the Remarks section for details.
(Defined by BitmapDataExtensions.)
Top
See Also

Reference