Click or drag to resize
Ab4d.SharpEngine logo

WpfBitmapIO Class

WpfBitmapIO uses WPF's bitmap load and save methods to support bitmap IO operations that are defined in IBitmapIO interface.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.WpfWpfBitmapIO

Namespace: Ab4d.SharpEngine.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public class WpfBitmapIO : IBitmapIO

The WpfBitmapIO type exposes the following members.

Constructors
 NameDescription
Public methodWpfBitmapIOInitializes a new instance of the WpfBitmapIO class
Top
Properties
 NameDescription
Public propertyConvertToSupportedFormatObsolete
Public propertyFileNotFoundResolver Gets or sets a Func that takes file name of a file that does not exist and returns an existing file name. If file name is not resolved, then null is returned.
Public propertyFileStreamResolver Gets or sets a Func that takes file name of a file that does not exist and returns a stream to the file. The returned stream is closed after the bitmap is read. If file name is not resolved, then null is returned.
Top
Methods
 NameDescription
Public methodStatic memberCreateRawImageData CreateRawImageData method takes the WPF's BitmapSource and returns a RawImageData.
Public methodStatic memberCreateWpfBitmap CreateWpfBitmap method takes the RawImageData and returns the WPF BitmapSource.
Public methodIsFileFormatExportSupported Returns true when exporting a bitmap to the specified file format that is defined by the fileExtension is supported.
Public methodIsFileFormatImportSupported Returns true when importing a bitmap from the specified file format that is defined by the fileExtension is supported.
Public methodIsStreamSupported Returns true when methods that take Stream as parameter are supported. When false, then only methods that take fileName are supported.
Public methodLoadBitmap(String, BitmapLoadOptions) Load bitmap into the RawImageData struct
Public methodLoadBitmap(Stream, String, BitmapLoadOptions) Load bitmap into the RawImageData struct
Public methodLoadBitmapImage LoadBitmapImage methods loads the file with the specified file name and returns a WPF BitmapImage.
Public methodSaveBitmap(RawImageData, String) Save bitmap from the RawImageData to the specified file.
Public methodSaveBitmap(RawImageData, Stream, String) Save bitmap from the RawImageData to the specified fileStream.
Top
See Also