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); }
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); }
public Test() { InitializeComponent(); gp = new BaseGraphics(Properties.Resources.aGOgp, 10, 1); bwClock.RunWorkerAsync(); picboxsetup(); drawdot(); }
public void Fill(Color color) { BaseGraphics.Clear(color); }