215 references to GraphicsUnit
System.Drawing (117)
commonui\System\Drawing\Advanced\Font.cs (22)
46GraphicsUnit fontUnit; 94GraphicsUnit unit = GraphicsUnit.Point; 115unit = (GraphicsUnit) sie.Value; 163public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit) { 174public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) { 185public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) { 196public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) { 208public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) { 224Initialize(family, emSize, style, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, false); 234public Font(FontFamily family, float emSize, GraphicsUnit unit) { 246Initialize(family, emSize, FontStyle.Regular, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, false); 256public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit) { 271Initialize(familyName, emSize, style, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, IsVerticalName(familyName)); 281public Font(string familyName, float emSize, GraphicsUnit unit) { 293Initialize(familyName, emSize, FontStyle.Regular, GraphicsUnit.Point, SafeNativeMethods.DEFAULT_CHARSET, IsVerticalName(familyName)); 309GraphicsUnit unit = GraphicsUnit.Point; 345private void Initialize(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 358private void Initialize(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 996if (Unit == GraphicsUnit.Point) 1026public GraphicsUnit Unit {
commonui\System\Drawing\Advanced\Gdiplus.cs (3)
1672internal static extern int GdipGetImageBounds(HandleRef image, ref GPRECTF gprectf, out GraphicsUnit unit); 2979internal static extern int GdipCreateFont(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font); 3027internal static extern int GdipGetFontUnit(HandleRef font, out GraphicsUnit unit);
commonui\System\Drawing\Advanced\MetafileFrameUnit.cs (5)
35Pixel = GraphicsUnit.Pixel, 41Point = GraphicsUnit.Point, 48Inch = GraphicsUnit.Inch, 54Document = GraphicsUnit.Document, 62Millimeter = GraphicsUnit.Millimeter,
commonui\System\Drawing\Advanced\StringUnit.cs (7)
29World = GraphicsUnit.World, 35Display = GraphicsUnit.Display, 40Pixel = GraphicsUnit.Pixel, 47Point = GraphicsUnit.Point, 54Inch = GraphicsUnit.Inch, 61Document = GraphicsUnit.Document, 67Millimeter = GraphicsUnit.Millimeter,
commonui\System\Drawing\Bitmap.cs (1)
596GraphicsUnit.Pixel, attributes, null, IntPtr.Zero);
commonui\System\Drawing\FontConverter.cs (20)
104GraphicsUnit units = GraphicsUnit.Point; 262else if (font.Unit != GraphicsUnit.Point) { 283args[3] = font.Unit; types[3] = typeof(GraphicsUnit); 342units = GraphicsUnit.Point; 368units is GraphicsUnit && 394(GraphicsUnit) units, 417private string GetGraphicsUnitText(GraphicsUnit units) { 491private GraphicsUnit ParseGraphicsUnits(string units) { 515internal GraphicsUnit unit; 518new UnitName("world", GraphicsUnit.World), // made up 519new UnitName("display", GraphicsUnit.Display), // made up 520new UnitName("px", GraphicsUnit.Pixel), 521new UnitName("pt", GraphicsUnit.Point), 522new UnitName("in", GraphicsUnit.Inch), 523new UnitName("doc", GraphicsUnit.Document), // made up 524new UnitName("mm", GraphicsUnit.Millimeter), 528internal UnitName(string name, GraphicsUnit unit) { 686public FontUnitConverter() : base(typeof(GraphicsUnit)) { 695filteredValues.Remove(GraphicsUnit.Display);
commonui\System\Drawing\Graphics.cs (46)
768public GraphicsUnit PageUnit { 778return(GraphicsUnit) unit; 782if (!ClientUtils.IsEnumValid(value, unchecked((int)value), (int)GraphicsUnit.World, (int)GraphicsUnit.Millimeter)) 784throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(GraphicsUnit)); 2901DrawImage(image, rect, 0, 0, width, height, GraphicsUnit.Pixel); 2991GraphicsUnit srcUnit) { 3019GraphicsUnit srcUnit) { 3047GraphicsUnit srcUnit) { 3081GraphicsUnit srcUnit) { 3112GraphicsUnit srcUnit) { 3153GraphicsUnit srcUnit, ImageAttributes imageAttr) { 3160GraphicsUnit srcUnit, ImageAttributes imageAttr, 3168GraphicsUnit srcUnit, ImageAttributes imageAttr, 3211public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) { 3219GraphicsUnit srcUnit, ImageAttributes imageAttr) { 3226GraphicsUnit srcUnit, ImageAttributes imageAttr, 3234GraphicsUnit srcUnit, ImageAttributes imageAttr, 3278float srcWidth, float srcHeight, GraphicsUnit srcUnit) { 3285float srcWidth, float srcHeight, GraphicsUnit srcUnit, 3293float srcWidth, float srcHeight, GraphicsUnit srcUnit, 3302float srcWidth, float srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, 3334int srcWidth, int srcHeight, GraphicsUnit srcUnit) { 3341int srcWidth, int srcHeight, GraphicsUnit srcUnit, 3349int srcWidth, int srcHeight, GraphicsUnit srcUnit, 3357int srcWidth, int srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, 3623RectangleF srcRect, GraphicsUnit srcUnit, 3631RectangleF srcRect, GraphicsUnit srcUnit, 3640RectangleF srcRect, GraphicsUnit unit, 3665Rectangle srcRect, GraphicsUnit srcUnit, 3673Rectangle srcRect, GraphicsUnit srcUnit, 3682Rectangle srcRect, GraphicsUnit unit, 3708RectangleF srcRect, GraphicsUnit srcUnit, 3716RectangleF srcRect, GraphicsUnit srcUnit, 3725RectangleF srcRect, GraphicsUnit unit, 3752Rectangle srcRect, GraphicsUnit srcUnit, 3760Rectangle srcRect, GraphicsUnit srcUnit, 3772Rectangle srcRect, GraphicsUnit unit, 3801RectangleF srcRect, GraphicsUnit srcUnit, 3812RectangleF srcRect, GraphicsUnit srcUnit, 3824RectangleF srcRect, GraphicsUnit unit, 3863Rectangle srcRect, GraphicsUnit srcUnit, 3874Rectangle srcRect, GraphicsUnit srcUnit, 3886Rectangle srcRect, GraphicsUnit unit, 4470public GraphicsContainer BeginContainer(RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit) { 4536public GraphicsContainer BeginContainer(Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit) {
commonui\System\Drawing\Image.cs (1)
964public RectangleF GetBounds(ref GraphicsUnit pageUnit) {
commonui\System\Drawing\Pen.cs (2)
80(int)GraphicsUnit.World, 122(int)GraphicsUnit.World,
commonui\System\Drawing\SystemFonts.cs (9)
59} else if (captionFont.Unit != GraphicsUnit.Point) { 101} else if (smcaptionFont.Unit != GraphicsUnit.Point) { 142} else if (menuFont.Unit != GraphicsUnit.Point) { 183} else if (statusFont.Unit != GraphicsUnit.Point) { 224} else if (messageboxFont.Unit != GraphicsUnit.Point) { 279} else if (icontitleFont.Unit != GraphicsUnit.Point) { 398if (defaultFont.Unit != GraphicsUnit.Point) { 436} else if (dialogFont.Unit != GraphicsUnit.Point) { 453return new Font(font.FontFamily, font.SizeInPoints, font.Style, GraphicsUnit.Point, font.GdiCharSet, font.GdiVerticalFont);
misc\DpiHelper.cs (1)
473graphics.DrawImage(logicalImage, destRect, sourceRect, GraphicsUnit.Pixel);
System.Web.DataVisualization (29)
Common\General\Axis.cs (9)
3681 GraphicsUnit.Point); 3734 GraphicsUnit.Point 3782GraphicsUnit.Point); 3915GraphicsUnit.Point); 3953GraphicsUnit.Point); 4767 GraphicsUnit.Point); 4804GraphicsUnit.Point); 5117GraphicsUnit.Point); 5127GraphicsUnit.Point);
Common\General\Chart.cs (4)
4229public Font GetFont(FontFamily family, float size, FontStyle style, GraphicsUnit unit) 4266GraphicsUnit _unit = GraphicsUnit.Point; 4311public KeyInfo(FontFamily family, float size, FontStyle style, GraphicsUnit unit)
Common\General\ChartArea.cs (1)
2599 GraphicsUnit.Point);
Common\General\ChartGraphics.cs (6)
750GraphicsUnit.Pixel, 758GraphicsUnit.Pixel, 2333GraphicsUnit.Pixel, 3599 GraphicsUnit.Pixel, 4272 GraphicsUnit.Pixel, 4570 GraphicsUnit.Pixel,
Common\General\ChartRenderingEngine.cs (2)
167 GraphicsUnit srcUnit, 389 GraphicsUnit srcUnit,
Common\General\GdiGraphics.cs (2)
124 GraphicsUnit srcUnit, 269 GraphicsUnit srcUnit,
Common\General\IChartRenderingEngine.cs (2)
99 GraphicsUnit srcUnit, 214 GraphicsUnit srcUnit,
Common\General\LegendColumns.cs (2)
2198 GraphicsUnit.Pixel, 2332GraphicsUnit.Pixel,
Common\Utilities\XmlSerializer.cs (1)
591 GraphicsUnit.Point,
System.Windows.Forms (35)
misc\DpiHelper.cs (1)
473graphics.DrawImage(logicalImage, destRect, sourceRect, GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\AxHost.cs (5)
4924if (font.Unit != GraphicsUnit.Point) 4949if (f.Unit != GraphicsUnit.Point) 4950f = new Font(f.Name, f.SizeInPoints, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont); 4969if (font.Unit != GraphicsUnit.Point) 5013f = new Font(oleFont.Name, (float)oleFont.Size/(float)10000, style, GraphicsUnit.Point, (byte)oleFont.Charset);
winforms\Managed\System\WinForms\ControlPaint.cs (9)
504partOfImageToDraw.Height, GraphicsUnit.Pixel); 513partOfImageToDraw.Height, GraphicsUnit.Pixel); 519g.DrawImage(backgroundImage, imageRectangle, 0, 0, backgroundImage.Width, backgroundImage.Height, GraphicsUnit.Pixel, imageAttrib); 1383graphics.DrawImage(bitmap, new Rectangle(x, y, width, height), 0, 0, width, height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero); 1524g.DrawImage(image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero); 1537GraphicsUnit.Pixel, attributes, null, IntPtr.Zero); 1601GraphicsUnit.Pixel, 1611GraphicsUnit.Pixel, 2031return new Font(font.FontFamily, font.SizeInPoints, font.Style, GraphicsUnit.Point, font.GdiCharSet, font.GdiVerticalFont);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
538g.DrawImage(b, bounds, 0, 0, bounds.Width, bounds.Height,GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
784g.DrawImage(b, bmpRect, 0, 0, bmpRect.Width, bmpRect.Height,GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\DataGridRow.cs (1)
572g.DrawImage(bmp, bmpRect, 0, 0, bmpRect.Width, bmpRect.Height,GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
4316graphics.DrawImage(bmp, iconBounds, 0, 0, iconsWidth, iconsHeight, GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
867g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
884g.DrawImage(img, imgBounds, 0, 0, img.Width, img.Height, GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (2)
842GraphicsUnit.Pixel); 1143g.DrawImage(bmp, bmpRect, 0, 0, iconsWidth, iconsHeight, GraphicsUnit.Pixel, attr);
winforms\Managed\System\WinForms\FontDialog.cs (2)
233result = new Font(result.FontFamily, MinSize, result.Style, GraphicsUnit.Point); 235result = new Font(result.FontFamily, MaxSize, result.Style, GraphicsUnit.Point);
winforms\Managed\System\WinForms\PaintEvent.cs (1)
135graphics.PageUnit = GraphicsUnit.Pixel;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
2310return new Font(fontName, fontSize, style, GraphicsUnit.Point, cf.bCharSet);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (2)
379 g.DrawImage(image, imageRect, 0, 0, imageRect.Width, imageRect.Height, GraphicsUnit.Pixel, attrs); 382 g.DrawImage(image, imageRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attrs);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
77if (sysFont.Unit != GraphicsUnit.Point) { 106if (sysFont.Unit != GraphicsUnit.Point) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
673e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (3)
878e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty,imageRect.Size), GraphicsUnit.Pixel); 908imageRect.Height, GraphicsUnit.Pixel, e.ImageAttributes); 1085GraphicsUnit.Pixel,
System.Windows.Forms.DataVisualization (29)
Common\General\Axis.cs (9)
3681 GraphicsUnit.Point); 3734 GraphicsUnit.Point 3782GraphicsUnit.Point); 3915GraphicsUnit.Point); 3953GraphicsUnit.Point); 4767 GraphicsUnit.Point); 4804GraphicsUnit.Point); 5117GraphicsUnit.Point); 5127GraphicsUnit.Point);
Common\General\Chart.cs (4)
4229public Font GetFont(FontFamily family, float size, FontStyle style, GraphicsUnit unit) 4266GraphicsUnit _unit = GraphicsUnit.Point; 4311public KeyInfo(FontFamily family, float size, FontStyle style, GraphicsUnit unit)
Common\General\ChartArea.cs (1)
2599 GraphicsUnit.Point);
Common\General\ChartGraphics.cs (6)
750GraphicsUnit.Pixel, 758GraphicsUnit.Pixel, 2333GraphicsUnit.Pixel, 3599 GraphicsUnit.Pixel, 4272 GraphicsUnit.Pixel, 4570 GraphicsUnit.Pixel,
Common\General\ChartRenderingEngine.cs (2)
167 GraphicsUnit srcUnit, 389 GraphicsUnit srcUnit,
Common\General\GdiGraphics.cs (2)
124 GraphicsUnit srcUnit, 269 GraphicsUnit srcUnit,
Common\General\LegendColumns.cs (2)
2198 GraphicsUnit.Pixel, 2332GraphicsUnit.Pixel,
Common\Utilities\XmlSerializer.cs (1)
591 GraphicsUnit.Point,
WinForm\Utilities\Printing.cs (2)
252if (ev.Graphics.PageUnit != GraphicsUnit.Pixel) 254ev.Graphics.PageUnit = GraphicsUnit.Pixel;
System.Workflow.ComponentModel (5)
AuthoringOM\Design\DesignerHelpers.cs (1)
193graphics.DrawImage(image, imageRectangle, source.X, source.Y, source.Width, source.Height, GraphicsUnit.Pixel, imageAttributes);
AuthoringOM\Design\DesignerWidgets.cs (3)
1257graphics.DrawImage(this.enabledItems[i].Image, new Rectangle(imagePoint, imageSize), new Rectangle(Point.Empty, imageSize), GraphicsUnit.Pixel); 1702Font = new Font(Font.FontFamily, this.reqTabItemSize * 2 / 3, GraphicsUnit.Pixel); 3470graphics.DrawImage(previewedActivityImage, destnRectangle, new Rectangle(Point.Empty, previewedActivityImage.Size), GraphicsUnit.Pixel);
AuthoringOM\Design\WorkflowView.cs (1)
1668viewPortGraphics.DrawImage(temporaryBitmap, new Rectangle(-viewPortData.ShadowDepth.Width, -viewPortData.ShadowDepth.Height, memoryBitmap.Width, memoryBitmap.Height), 0, 0, memoryBitmap.Width, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey);