ImageFormat Enumeration
- Namespace
TXTextControl.WPF. Barcode
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXBarcode.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXBarcode.from the setup.WPF. dll
Description
Specifies the format of the image in WPF. The enumeration contains the following values:
Syntax
public enum ImageFormatPublic Enum ImageFormatMembers
| Member | Value | Description |
|---|---|---|
| BMP | 0 | Specifies the bitmap (BMP) image format. |
| JPEG | 1 | Specifies the Joint Photographic Experts Group (JPEG) image format. |
| PNG | 2 | Specifies the W3C Portable Network Graphics (PNG) image format. |
| TIFF | 3 | Specifies the Tagged Image File Format (TIFF) image format. |
| GIF | 4 | Specifies the Graphics Interchange Format (GIF) image format. |
| WMP | 5 | Specifies the Microsoft Windows Media Photo (WMP) image format. |
Examples
The following example selects the BMP value from the Image Format enumeration and uses it as a documented workflow choice.
TXTextControl.WPF.Barcode.ImageFormat value = TXTextControl.WPF.Barcode.ImageFormat.BMP;
Console.WriteLine($"Using Image Format: {value}");Dim value As TXTextControl.WPF.Barcode.ImageFormat = TXTextControl.WPF.Barcode.ImageFormat.BMP
Console.WriteLine($"Using Image Format: {value}")