Aspose::Font::TextUtils::IFontMorseEncoder::Encode metodo
IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, char16_t, char16_t) method
Codifica il testo in codice Morse e restituisce il risultato come insieme di glifi (glyphId). Viene utilizzata un’analisi euristica per calcolare l’alfabeto del testo di input.
virtual System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
| Parametro | Tipo | Descrizione |
|---|---|---|
| testo | System::String | Testo da codificare in codice Morse |
| font | System::SharedPtr<IFont> | Font per prendere i glifi relativi ai simboli punto e trattino da |
| inputSeparator | char16_t | Simbolo usato per separare le parole nel testo di input |
| outputSeparator | char16_t | Simbolo usato per separare le parole nel testo codificato |
ReturnValue
Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”
Vedi anche
- Typedef ArrayPtr
- Typedef SharedPtr
- Class GlyphId
- Class String
- Class IFont
- Class IFontMorseEncoder
- Namespace Aspose::Font::TextUtils
- Library Aspose.Font for C++
IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, double, Renderers::RenderingUtils::LineSpacingType, int32_t, int32_t, char16_t, char16_t) method
Codifica il testo in codice Morse e disegna il risultato in formato PNG. Viene utilizzata un’analisi euristica per calcolare l’alfabeto del testo di input.
virtual System::SharedPtr<System::IO::Stream> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, double fontSize, Renderers::RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
| Parametro | Tipo | Descrizione |
|---|---|---|
| testo | System::String | Testo da codificare in codice Morse |
| font | System::SharedPtr<IFont> | Font per prendere i glifi relativi ai simboli punto e trattino da |
| fontSize | double | Font dimensione |
| lineSpacingType | Renderers::RenderingUtils::LineSpacingType | Tipo di interlinea. Numero di pixel o percentuale dell’altezza del font |
| lineSpacingValue | int32_t | Valore dell’interlinea |
| maxWidth | int32_t | Larghezza massima in pixel per l’immagine |
| inputSeparator | char16_t | Simbolo usato per separare le parole nel testo di input |
| outputSeparator | char16_t | Simbolo usato per separare le parole nel testo codificato |
ReturnValue
Testo, codificato in codice Morse, in formato PNG come flusso di byte
Vedi anche
- Typedef SharedPtr
- Class Stream
- Class String
- Class IFont
- Enum LineSpacingType
- Class IFontMorseEncoder
- Namespace Aspose::Font::TextUtils
- Library Aspose.Font for C++
IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, double, Renderers::RenderingUtils::LineSpacingType, int32_t, int32_t, MorseAlphabets, char16_t, char16_t) method
Codifica il testo in codice Morse e disegna il risultato in formato PNG.
virtual System::SharedPtr<System::IO::Stream> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, double fontSize, Renderers::RenderingUtils::LineSpacingType lineSpacingType, int32_t lineSpacingValue, int32_t maxWidth, MorseAlphabets alphabet, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
| Parametro | Tipo | Descrizione |
|---|---|---|
| testo | System::String | Testo da codificare in codice Morse |
| font | System::SharedPtr<IFont> | Font per prendere i glifi relativi ai simboli punto e trattino da |
| fontSize | double | Font dimensione |
| lineSpacingType | Renderers::RenderingUtils::LineSpacingType | Tipo di interlinea. Numero di pixel o percentuale dell’altezza del font |
| lineSpacingValue | int32_t | Valore dell’interlinea |
| maxWidth | int32_t | Larghezza massima in pixel per l’immagine |
| alfabeto | MorseAlphabets | Alfabeto del codice Morse |
| inputSeparator | char16_t | Simbolo usato per separare le parole nel testo di input |
| outputSeparator | char16_t | Simbolo usato per separare le parole nel testo codificato |
ReturnValue
Testo, codificato in codice Morse, in formato PNG come flusso di byte
Vedi anche
- Typedef SharedPtr
- Class Stream
- Class String
- Class IFont
- Enum LineSpacingType
- Enum MorseAlphabets
- Class IFontMorseEncoder
- Namespace Aspose::Font::TextUtils
- Library Aspose.Font for C++
IFontMorseEncoder::Encode(System::String, System::SharedPtr<IFont>, MorseAlphabets, char16_t, char16_t) method
Codifica il testo in codice Morse e restituisce il risultato come insieme di glifi (identificatori dei glifi).
virtual System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> Aspose::Font::TextUtils::IFontMorseEncoder::Encode(System::String text, System::SharedPtr<IFont> font, MorseAlphabets alphabet, char16_t inputSeparator=u' ', char16_t outputSeparator=u'/')=0
| Parametro | Tipo | Descrizione |
|---|---|---|
| testo | System::String | Testo da codificare in codice Morse |
| font | System::SharedPtr<IFont> | Font per prendere i glifi relativi ai simboli punto e trattino da |
| alfabeto | MorseAlphabets | Alfabeto del codice Morse |
| inputSeparator | char16_t | Simbolo usato per separare le parole nel testo di input |
| outputSeparator | char16_t | Simbolo usato per separare le parole nel testo codificato |
ReturnValue
Glyphs(glyphId) related to encoded text, ie “… — …” for the input text “SOS”
Vedi anche
- Typedef ArrayPtr
- Typedef SharedPtr
- Class GlyphId
- Class String
- Class IFont
- Enum MorseAlphabets
- Class IFontMorseEncoder
- Namespace Aspose::Font::TextUtils
- Library Aspose.Font for C++