Exemple #1
0
 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;
 }
Exemple #2
0
 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;
 }
Exemple #3
0
 public TextBlockSprite(string text, float fontSize, string fontFamily, SnapsColor color) : this(text, fontSize, fontFamily, color, 0, 0, 0)
 {
 }
Exemple #4
0
 public TextBlockSprite(string text, float fontSize, SnapsColor color) : this(text, fontSize, "Segoe UI", color, 0, 0, 0)
 {
 }
Exemple #5
0
 public TextBlockSprite(string text, float fontSize, SnapsColor color, double x, double y) : this(text, fontSize, "Segoe UI", color, x, y, 0)
 {
 }
Exemple #6
0
 public DotSprite(double diameter, SnapsColor color, double x, double y) : base(x, y)
 {
     this.color  = color;
     this.Width  = diameter;
     this.Height = diameter;
 }
Exemple #7
0
 /// <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);
 }
Exemple #8
0
 /// <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);
 }
Exemple #9
0
 /// <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);
 }
Exemple #10
0
 /// <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);
 }