BitmapSourceExtensions Class

KGy SOFT Drawing Libraries Help
Contains extension methods for the BitmapSource type.
Inheritance Hierarchy

SystemObject
  KGySoft.Drawing.WpfBitmapSourceExtensions

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

public static class BitmapSourceExtensions

The BitmapSourceExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberBeginConvertPixelFormat(BitmapSource, PixelFormat, IQuantizer, IDitherer, AsyncConfig)
Begins to convert the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberBeginConvertPixelFormat(BitmapSource, PixelFormat, Color, Byte, AsyncConfig)
Begins to convert the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberBeginConvertPixelFormat(BitmapSource, PixelFormat, Color, Color, Byte, AsyncConfig)
Begins to convert the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberCode exampleConvertPixelFormat(BitmapSource, PixelFormat, IQuantizer, IDitherer)
Converts the specified bitmap to a WriteableBitmap with the desired PixelFormat.
See the Remarks section for details, image examples and comparisons with FormatConvertedBitmap results.
Public methodStatic memberCode exampleConvertPixelFormat(BitmapSource, PixelFormat, Color, Byte)
Converts the specified bitmap to a WriteableBitmap of the desired PixelFormat.
See the Remarks section for details, image examples and comparisons with FormatConvertedBitmap results.
Public methodStatic memberConvertPixelFormat(BitmapSource, PixelFormat, Color, Color, Byte)
Converts the specified bitmap to a WriteableBitmap of the desired PixelFormat.
See the Remarks section for details.
Public methodStatic memberConvertPixelFormatAsync(BitmapSource, PixelFormat, IQuantizer, IDitherer, TaskConfig)
Converts the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberConvertPixelFormatAsync(BitmapSource, PixelFormat, Color, Byte, TaskConfig)
Converts the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberConvertPixelFormatAsync(BitmapSource, PixelFormat, Color, Color, Byte, TaskConfig)
Converts the specified bitmap to a WriteableBitmap of the desired PixelFormat asynchronously.
See the Remarks section for details.
Public methodStatic memberEndConvertPixelFormat
Waits for the pending asynchronous operation started by the BeginConvertPixelFormat methods to complete. In .NET Framework 4.0 and above you can use the ConvertPixelFormatAsync methods instead. To avoid blocking the source thread it is recommended to call this method from the CompletedCallback delegate of the asyncConfig parameter of the BeginConvertPixelFormat methods.
See the Remarks section of the BeginConvertPixelFormat(BitmapSource, PixelFormat, IQuantizer, IDitherer, AsyncConfig) method for details.
Public methodStatic memberGetReadableBitmapData
Gets a managed read-only accessor for a BitmapSource instance.
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 this method, too.
Top
See Also

Reference