Png | |
public class PngBitmapIO : IBitmapIO
The PngBitmapIO type exposes the following members.
| Name | Description | |
|---|---|---|
| PngBitmapIO | Initializes a new instance of the PngBitmapIO class |
| Name | Description | |
|---|---|---|
| ConvertToSupportedFormat | Obsolete | |
| FileNotFoundResolver | 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. By default, the FileNotFoundResolver in PngBitmapIO is set to a method that tries to resolve the file name by combining it with the base directory of the application. | |
| FileNotSupportedResolver | Gets or sets a Func that takes file name of a file in a file format that is not .png (only png is supported by PngBitmapIO). If file name is not resolved, then null is returned. | |
| FileStreamResolver | 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. |
| Name | Description | |
|---|---|---|
| IsFileFormatExportSupported | Returns true when exporting a bitmap to the specified file format that is defined by the fileExtension is supported. | |
| IsFileFormatImportSupported | Returns true when importing a bitmap from the specified file format that is defined by the fileExtension is supported. | |
| IsStreamSupported | Returns true when methods that take Stream as parameter are supported. When false, then only methods that take fileName are supported. | |
| LoadBitmap(String, BitmapLoadOptions) | Load bitmap into the RawImageData struct | |
| LoadBitmap(Stream, String, BitmapLoadOptions) | Load bitmap into the RawImageData struct | |
| SaveBitmap(RawImageData, String) | Save bitmap from the RawImageData to the specified file. | |
| SaveBitmap(RawImageData, Stream, String) | Save bitmap from the RawImageData to the specified fileStream. |