public BlockSprite(double width, double height, SnapsColor color, double x, double y, double rotation) : base(x, y, rotation) { this.color = color; this.Width = width; this.Height = height; this.aspectRatio = width / height; this.RotationAngle = rotation; }
public TextBlockSprite(string text, float fontSize, string fontFamily, SnapsColor color, double x, double y, double rotation) : base(x, y, rotation) { this.textValue = text; this.FontSize = fontSize; this.FontFamilyName = fontFamily; this.color = color; this.RotationAngle = rotation; }
public TextBlockSprite(string text, float fontSize, string fontFamily, SnapsColor color) : this(text, fontSize, fontFamily, color, 0, 0, 0) { }
public TextBlockSprite(string text, float fontSize, SnapsColor color) : this(text, fontSize, "Segoe UI", color, 0, 0, 0) { }
public TextBlockSprite(string text, float fontSize, SnapsColor color, double x, double y) : this(text, fontSize, "Segoe UI", color, x, y, 0) { }
public DotSprite(double diameter, SnapsColor color, double x, double y) : base(x, y) { this.color = color; this.Width = diameter; this.Height = diameter; }
/// <summary> /// Sets the color of the title string for a Snaps program /// </summary> /// <param name="color"></param> public static void SetTitleColor(SnapsColor color) { manager.SetTitleColor(color); }
/// <summary> /// Set the colour of the specified cell /// </summary> /// <param name="x">x position of cell, 0 is top left hand corner</param> /// <param name="y">y position of cell, 0 is top left hand corner</param> /// <param name="panelColor">color of the cell</param> public static void SetPanelCell(int x, int y, SnapsColor panelColor) { manager.SetPanelCell(x, y, panelColor); }
/// <summary> /// Sets the background colour of the drawing area /// </summary> /// <param name="color">color to be used</param> public static void SetBackgroundColor(SnapsColor color) { manager.SetBackgroundColor(color); }
/// <summary> /// Sets the color of successive drawing actions /// </summary> /// <param name="color">color to be used for the drawing</param> public static void SetDrawingColor(SnapsColor color) { manager.SetDrawingColor(color); }