SixelToRender.cs 686 B

12345678910111213141516171819
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Describes a request to render a given <see cref="SixelData"/> at a given <see cref="ScreenPosition"/>.
  4. /// Requires that the terminal and <see cref="IConsoleDriver"/> both support sixel.
  5. /// </summary>
  6. public class SixelToRender
  7. {
  8. /// <summary>
  9. /// gets or sets the encoded sixel data. Use <see cref="SixelEncoder"/> to convert bitmaps
  10. /// into encoded sixel data.
  11. /// </summary>
  12. public string SixelData { get; set; }
  13. /// <summary>
  14. /// gets or sets where to move the cursor to before outputting the <see cref="SixelData"/>.
  15. /// </summary>
  16. public Point ScreenPosition { get; set; }
  17. }