RenderTarget.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // --------------------------------------------------------------------------------------------------------------------
  2. // <copyright file="RenderTarget.cs" company="OxyPlot">
  3. // Copyright (c) 2020 OxyPlot contributors
  4. // </copyright>
  5. // --------------------------------------------------------------------------------------------------------------------
  6. namespace OxyPlot.SkiaSharp
  7. {
  8. /// <summary>
  9. /// Defines a render target for <see cref="SkiaRenderContext"/>.
  10. /// </summary>
  11. public enum RenderTarget
  12. {
  13. /// <summary>
  14. /// Indicates that the <see cref="SkiaRenderContext"/> renders to a screen.
  15. /// </summary>
  16. /// <remarks>
  17. /// The render context may try to snap shapes to device pixels and will use sub-pixel text rendering.
  18. /// </remarks>
  19. Screen,
  20. /// <summary>
  21. /// Indicates that the <see cref="SkiaRenderContext"/> renders to a pixel graphic.
  22. /// </summary>
  23. /// <remarks>
  24. /// The render context may try to snap shapes to pixels, but will not use sub-pixel text rendering.
  25. /// </remarks>
  26. PixelGraphic,
  27. /// <summary>
  28. /// Indicates that the <see cref="SkiaRenderContext"/> renders to a vector graphic.
  29. /// </summary>
  30. /// <remarks>
  31. /// The render context will not use any rendering enhancements that are specific to pixel graphics.
  32. /// </remarks>
  33. VectorGraphic
  34. }
  35. }