예제 #1
0
 public static void RenderPrimitiveShapes(Canvas canvas) {
     canvas.DrawLine(5, 65, 200, 65, BasicColor.Red);
     canvas.DrawLine(5, 67, 200, 67, BasicColor.Green);
     canvas.DrawLine(5, 69, 200, 69, BasicColor.Blue);
     canvas.DrawCircleFilled(30, 105, 23, (BasicColor)canvas.GetRGB24toRGB565(0x33, 0x00, 0x00));
     canvas.DrawCircleFilled(30, 105, 19, (BasicColor)canvas.GetRGB24toRGB565(0x66, 0x00, 0x00));
     canvas.DrawCircleFilled(30, 105, 15, (BasicColor)canvas.GetRGB24toRGB565(0x99, 0x00, 0x00));
     canvas.DrawCircleFilled(30, 105, 11, (BasicColor)canvas.GetRGB24toRGB565(0xCC, 0x00, 0x00));
     canvas.DrawCircleFilled(30, 105, 7, (BasicColor)canvas.GetRGB24toRGB565(0xFF, 0x00, 0x00));
     canvas.DrawRectangleFilled(80, 80, 180, 125, (BasicColor)GrayScaleValues.Gray_15);
     canvas.DrawRectangleFilled(85, 85, 175, 120, (BasicColor)GrayScaleValues.Gray_30);
     canvas.DrawRectangleFilled(90, 90, 170, 115, (BasicColor)GrayScaleValues.Gray_50);
     canvas.DrawRectangleFilled(95, 95, 165, 110, (BasicColor)GrayScaleValues.Gray_80);
     canvas.DrawRectangleFilled(100, 100, 160, 105, (BasicColor)GrayScaleValues.Gray_128);
 }
예제 #2
0
 public static void RenderCompoundShapes(Canvas canvas, FontInfo fontInfo) {
     canvas.DrawProgressBar(
         70, 140, 
         75, 12,
         Canvas.RoundedCornerStyle.None,
         Canvas.RoundedCornerStyle.None, 
         BasicColor.Black,
         (BasicColor)GrayScaleValues.Gray_128,
         (BasicColor)GrayScaleValues.Gray_30,
         BasicColor.Green,
         78);
     canvas.DrawString(5, 144, BasicColor.Black, fontInfo, "Progress");
     canvas.DrawString(155, 144, BasicColor.Black, fontInfo, "78%");
     canvas.DrawRectangleFilled(0, 275, 239, 319, (BasicColor)GrayScaleValues.Gray_80);
     canvas.DrawButton(
         20, 285, 
         200, 25, 
         fontInfo, 
         7,
         BasicColor.Black,
         BasicColor.Green,
         BasicColor.Black,
         "Click For Text Entry"
         );
 }