Aptivi - Stable Manuals
ProjectsWebsiteBlog
Terminaux 5.x - Manual
Terminaux 5.x - Manual
  • Welcome!
  • Breaking changes
    • API v1.0
    • API v2.0
    • API v3.0
    • API v4.0
    • API v5.0
  • Usage
    • Preface
    • Console Tools
      • Console Checker
        • Console Size Requirements
      • Image Rendering
        • Icons
      • Console Writers
        • Informational Boxes
      • Console Wrapper
      • Console Colors
      • Color Templates
      • Console Screen
      • Console Resize Listener
      • Presentation System
      • VT Sequences
      • Console Extensions
      • Interactive TUI
      • Geometric Shapes
      • Nerd Fonts
      • Terminal Info
      • Wide Characters
    • Input Reader
      • Custom Bindings
      • Reader State
      • Reader Settings
      • Syntax Highlighting
      • Pointer Events
      • Other Input
        • Keybindings
        • Choice-based inputs
        • Editors and Viewers
        • Figlet Font Selector
        • Color Wheel
    • Color Sequences
      • Color Model Conversions
      • Color Model Parsing
      • Interop with System.Drawing.Color
  • Report an issue
  • Source code
  • API Reference
Powered by GitBook
On this page
Edit on GitHub
  1. Usage
  2. Console Tools
  3. Image Rendering

Icons

Describe something using images!

As of Terminaux 4.2.0, it provides a method to render icons. They represent symbols that describe something, such as computer peripherals and books, to describe a thing or two using just the icons. The IconsManager class provides you with icon management tools that allow you to render the icons and get their names.

They're not suitable for icons inside the text, because it uses pictures. If you still want to use them, use the text-based emojis instead.

In order to be able to use the icons in your interactive applications, you can get the value from the RenderIcon() function, specifying the icon name, the width and the height of your icon, and the position of where do you want your icon to be rendered. This value can then be printed using the conventional TextWriterRaw.WriteRaw() function.

You can choose one of the two following properties:

  • Quality: Normal quality (72x72), high quality (618x618), or scalable quality (SVG)

  • Color: Colored or Black

The icon selector allows you to interactively select an icon while showing it to you at the same time to review your icon choice. This can be accessed in the IconsSelector class.