Graphics.DrawString("?", new Font("Arial", 8, FontStyle.Bold), new SolidBrush(Color.BlanchedAlmond), Graphics.DrawString(spellName, new Font("Arial", 8, FontStyle.Bold), new SolidBrush(Color.BlanchedAlmond), Graphics.FillRectangle(new SolidBrush(Color.Gray), rectBackground) RectOutline.Width - 1, rectOutline.Height - 1) Rectangle rectBackground = new Rectangle(rectOutline.X + 1, rectOutline.Y + 1, Graphics.DrawRectangle(new Pen(new SolidBrush(Color.Black)), rectOutline) Rectangle rectOutline = new Rectangle((int)(_/2-_/2+2), Internal void ShowInformation(Graphics graphics) G.DrawString(mi.Name, faultFont, Game.blackBrush,x,y + dy) G.DrawString(items.Info ,new Font("Times New Roman", 12, FontStyle.Bold, GraphicsUnit.Pixel),Game.blackBrush, x - 50, y +30 + this.espace * this.currentChose) G.DrawString(">", faultFont, Game.blackBrush, x-50, y + this.espace *this.currentChose ) NGraphics.DrawString(mSideTabName, nFont, SystemBrushes.HighlightText, new PointF(nRectangle.X + width_, nRectangle.Y)) īitmap t = NGraphics.FillRectangle(SystemBrushes.ControlDarkDark, nRectangle) NGraphics.DrawString(mSideTabName, nFont, SystemBrushes.ControlText, new PointF(nRectangle.X + width_ + 2, nRectangle.Y + 2)) ĬontrolPaint.DrawBorder3D(nGraphics, nRectangle, Border3DStyle.Sunken) NGraphics.DrawImage(mSideTabImage, nRectangle.X + 1, nRectangle.Y + 1, width_, width_) Public void _drawTabHeader(Graphics nGraphics, Font nFont, Rectangle nRectangle)ĬontrolPaint.DrawBorder3D(nGraphics, nRectangle, Border3DStyle.RaisedInner) G.DrawEllipse(pen, labelItem.StartX, labelItem.StartY, settings.StampDiameter, settings.StampDiameter) īrushes.Black, labelItem.StartX + 2, labelItem.StartY + 11) G.DrawImageUnscaled(barCodeBmp, labelItem.StartX, labelItem.StartY) New Font(labelItem.FontName ? "Arial", labelItem.FontSize, (labelItem.IsBold ? FontStyle.Bold : FontStyle.Regular) | (labelItem.IsItalic ? FontStyle.Italic : FontStyle.Regular)),īrushes.Black, labelItem.StartX, labelItem.StartY) Private static void ProcessLabelItem(LabelItem labelItem, Graphics g, PrintLabelSettings settings) G.DrawString(messagetext, this.txtFont, ForeBrush, rectangle2, format) Rectangle rectangle2 = new Rectangle(this.leftmargin, (this.topmargin + this.barheight) + this.textmargin, textlength, 2 * sfheight) G.DrawString(s, this.txtFont, ForeBrush, layoutRectangle, format) Rectangle layoutRectangle = new Rectangle(this.leftmargin + ((i * textlength) / messagetext.Length), (this.topmargin + this.barheight) + this.textmargin, textlength / messagetext.Length, 2 * sfheight) StringFormat format = new StringFormat() įormat.Alignment = StringAlignment.Center įor (int i = 0 i < messagetext.Length i++) Private void DrawBarcodeText(ref Graphics g, string messagetext, int textlength, SolidBrush ForeBrush, int sfheight, bool texttostretch, int textalignment) ItemStringFormat.LineAlignment = StringAlignment.Far ĭrawDestination.DrawLine(Pens.LightGray,10,10,10,70) ĭrawDestination.FillPolygon(Brushes.Black,capPolygon) ĭrawDestination.DrawString("Lost",new Font("Arial",8),Brushes.Black,itemBox,itemStringFormat) ĭrawDestination.DrawString("g",new Font("Arial",8),Brushes.Black,itemBox2,itemStringFormat) ĭrawDestination.DrawLine(Pens.Black,10, 40, 60,40) ĭrawDestination.FillEllipse(Brushes.Black, new RectangleF(60,35, 10,10)) ĭrawDestination.DrawLine(Pens.Black,60, 40, 54,43) ĭrawDestination.DrawLine(Pens.Black,60, 40, 54,37) ItemStringFormat.Alignment = StringAlignment.Center RectangleF itemBox2 = new RectangleF(60, 48, 10, 10) RectangleF itemBox = new RectangleF(10, 30, 42, 10) StringFormat itemStringFormat = new StringFormat() Public static void RepertoryImage(Graphics drawDestination)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |