예제 #1
0
        public IImageOptions Image(int x, int y, int w, int h, Action <IImageOptions> option)
        {
            var Img = Bitraphic.Draw(w, h, option);

            BaseGraphics.DrawImage(Img, new Rectangle(x, y, w, h));
            return(this);
        }
예제 #2
0
 internal void String(string text, string fontName, float emSize, FontStyle fontStyle, StringFormat?stringFormat = null)
 {
     TextValue     = text;
     Format        = stringFormat;
     Font          = Bitraphic.GetFont(fontName, emSize, fontStyle);
     MeasureString = BaseGraphics.MeasureString(text, Font);
 }
예제 #3
0
파일: Test.cs 프로젝트: D-Khoa/MyGit
 public Test()
 {
     InitializeComponent();
     gp = new BaseGraphics(Properties.Resources.aGOgp, 10, 1);
     bwClock.RunWorkerAsync();
     picboxsetup();
     drawdot();
 }
예제 #4
0
 public void Fill(Color color)
 {
     BaseGraphics.Clear(color);
 }