28        private int width = 800;
 
   29        private int height = 600;
 
   30        private float zoom = 1;
 
   31        private float offsetX = 0;
 
   32        private float offsetY = 0;
 
   33        private SKColor backgroundColor = SKColors.White;
 
   34        private SKColor penColor = SKColors.Black;
 
   35        private SKColor textColor = SKColors.Black;
 
   36        private string fontName = 
"Segoe UI";
 
   37        private float fontSize = 12;
 
   38        private float pixelsPerInch = 96;
 
   52            get => this.imageSize;
 
   53            set => this.imageSize = value;
 
   65                    throw new ArgumentException(
"Invalid width.", nameof(this.
Width));
 
   80                    throw new ArgumentException(
"Invalid height.", nameof(this.
Height));
 
   95                    throw new ArgumentException(
"Invalid zoom factor.", nameof(this.
Zoom));
 
  107            set => this.offsetX = value;
 
  116            set => this.offsetY = value;
 
  124            get => this.backgroundColor;
 
  125            set => this.backgroundColor = value;
 
  133            get => this.penColor;
 
  134            set => this.penColor = value;
 
  142            get => this.textColor;
 
  143            set => this.textColor = value;
 
  151            get => this.fontName;
 
  154                if (
string.IsNullOrEmpty(value))
 
  155                    throw new ArgumentException(
"Invalid font name.", nameof(this.
FontName));
 
  157                this.fontName = value;
 
  166            get => this.fontSize;
 
  170                    throw new ArgumentException(
"Invalid font size.", nameof(this.
FontSize));
 
  172                this.fontSize = value;
 
  181            get => this.pixelsPerInch;
 
  185                    throw new ArgumentException(
"Invalid number of pixels per inch.", nameof(this.
PixelsPerInch));
 
  187                this.pixelsPerInch = value;
 
RenderSettings()
Determines the size of the rendered image.
SKColor PenColor
Pen color
float PixelsPerInch
Pixels per inch (default=96 pixels/inch)
SKColor TextColor
Text color
float FontSize
Font size, in points
SKColor BackgroundColor
Background color
int Height
Height of image
float OffsetY
Offset along Y-axis.
RenderedImageSize ImageSize
Offset along X-axis.
float OffsetX
Offset along X-axis.
RenderedImageSize
Affects the size of the rendered image.