LcdConsole.CreateEncoding Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateEncoding(CultureInfo, String, Char, Int32, LcdCharacterEncodingFactory) |
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding). |
CreateEncoding(CultureInfo, String, Char, Int32, LcdCharacterEncodingFactory) |
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding). |
CreateEncoding(CultureInfo, String, Char, Int32, LcdCharacterEncodingFactory)
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding).
public static Iot.Device.CharacterLcd.LcdCharacterEncoding CreateEncoding (System.Globalization.CultureInfo culture, string romType, char unknownCharacter = '?', int maxNumberOfCustomCharacters = 8, Iot.Device.CharacterLcd.LcdCharacterEncodingFactory? factory = default);
static member CreateEncoding : System.Globalization.CultureInfo * string * char * int * Iot.Device.CharacterLcd.LcdCharacterEncodingFactory -> Iot.Device.CharacterLcd.LcdCharacterEncoding
Public Shared Function CreateEncoding (culture As CultureInfo, romType As String, Optional unknownCharacter As Char = '?', Optional maxNumberOfCustomCharacters As Integer = 8, Optional factory As LcdCharacterEncodingFactory = Nothing) As LcdCharacterEncoding
Parameters
- culture
- CultureInfo
Required display culture (forwarded to the factory)
- romType
- String
The name of the ROM for which the encoding is to be applied. The default factory supports roms A00 and A02.
- unknownCharacter
- Char
The character to print for unknown letters, default: ?
- maxNumberOfCustomCharacters
- Int32
The maximum number of custom characters supported by the hardware.
- factory
- LcdCharacterEncodingFactory
Character encoding factory that delivers the mapping of the Char type to the hardware ROM character codes. May add special characters into the character ROM. Default: Null (Use internal factory)
Returns
Applies to
CreateEncoding(CultureInfo, String, Char, Int32, LcdCharacterEncodingFactory)
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding).
public static Iot.Device.Graphics.LcdCharacterEncoding CreateEncoding (System.Globalization.CultureInfo culture, string romType, char unknownCharacter = '?', int maxNumberOfCustomCharacters = 8, Iot.Device.Graphics.LcdCharacterEncodingFactory? factory = default);
static member CreateEncoding : System.Globalization.CultureInfo * string * char * int * Iot.Device.Graphics.LcdCharacterEncodingFactory -> Iot.Device.Graphics.LcdCharacterEncoding
Public Shared Function CreateEncoding (culture As CultureInfo, romType As String, Optional unknownCharacter As Char = '?', Optional maxNumberOfCustomCharacters As Integer = 8, Optional factory As LcdCharacterEncodingFactory = Nothing) As LcdCharacterEncoding
Parameters
- culture
- CultureInfo
Required display culture (forwarded to the factory)
- romType
- String
The name of the ROM for which the encoding is to be applied. The default factory supports roms A00 and A02.
- unknownCharacter
- Char
The character to print for unknown letters, default: ?
- maxNumberOfCustomCharacters
- Int32
The maximum number of custom characters supported by the hardware.
- factory
- LcdCharacterEncodingFactory
Character encoding factory that delivers the mapping of the Char type to the hardware ROM character codes. May add special characters into the character ROM. Default: Null (Use internal factory)