コード例 #1
0
 public static void Rect(IControlPropertiesValue Params, DrawRect rect, Graphics graf)
 {
     DrawRectMethods.DrawRectangle(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(),
                                   Params["Width", rect.BorderSize].AsInteger(),
                                   Params["CornerRadius"].AsInteger(), Params["Sides", () => { return(new RectSides()
         {
             Full = true
         }); }].As <RectSides>());
 }
コード例 #2
0
 public static void FillGradient(IControlPropertiesValue Params, DrawRect rect, Graphics graf)
 {
     DrawRectMethods.FillRectGradient(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(), Params["Color2"].AsColor(),
                                      Params["Direction", SimpleDirection.Vertical].As <SimpleDirection>(),
                                      Params["CornerRadius"].AsInteger());
 }
コード例 #3
0
 public static void FillRect(IControlPropertiesValue Params, DrawRect rect, Graphics graf)
 {
     DrawRectMethods.FillRect(Params["Rect", rect.Rect].As <Rectangle>(), graf, Params["Color"].AsColor(),
                              Params["CornerRadius"].AsInteger());
 }