31 references to Pixel
System.Windows.Forms (24)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3555
graphics.DrawImage(s_errorBmp, iconBounds, 0, 0, s_iconsWidth, s_iconsHeight, GraphicsUnit.
Pixel
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
840
g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.
Pixel
);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
832
g.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.
Pixel
, attr);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
711
GraphicsUnit.
Pixel
);
1049
g.DrawImage(invertedBitmap, bmpRect, 0, 0, s_iconsWidth, s_iconsHeight, GraphicsUnit.
Pixel
, attr);
1053
g.DrawImage(bmp, bmpRect, 0, 0, s_iconsWidth, s_iconsHeight, GraphicsUnit.
Pixel
, attr);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
95
graphics.DrawImage(invertedImage, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.
Pixel
, new ImageAttributes());
99
graphics.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.
Pixel
, new ImageAttributes());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1715
graphics.DrawImage(bitmap, rectangle, 0, 0, bitmap.Width, bitmap.Height, GraphicsUnit.
Pixel
);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
512
g.DrawImage(image, imageRect, 0, 0, imageRect.Width, imageRect.Height, GraphicsUnit.
Pixel
, attrs);
516
g.DrawImage(image, imageRect, 0, 0, image.Width, image.Height, GraphicsUnit.
Pixel
, attrs);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
768
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.
Pixel
);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
827
e.Graphics.DrawImage(image, imageRect, new Rectangle(Point.Empty, imageRect.Size), GraphicsUnit.
Pixel
);
899
imageRect.Height, GraphicsUnit.
Pixel
, e.ImageAttributes);
1204
srcUnit: GraphicsUnit.
Pixel
,
System\Windows\Forms\Rendering\ControlPaint.cs (8)
516
GraphicsUnit.
Pixel
);
533
GraphicsUnit.
Pixel
);
547
GraphicsUnit.
Pixel
,
1499
GraphicsUnit.
Pixel
,
1594
GraphicsUnit.
Pixel
,
1612
g.DrawImage(image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.
Pixel
, attributes, null, 0);
1668
GraphicsUnit.
Pixel
,
1680
GraphicsUnit.
Pixel
,
System\Windows\Forms\Rendering\DrawingEventArgs.cs (1)
111
_graphics.PageUnit = GraphicsUnit.
Pixel
;
System.Windows.Forms.Design (6)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
143
GraphicsUnit.
Pixel
,
System\Drawing\Design\FontNameEditor.cs (1)
72
using Font font = new(fontFamily, fontSize, fontStyle, GraphicsUnit.
Pixel
);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
377
_graphics.DrawImage(_backgroundImage, invalidRect, invalidRect, GraphicsUnit.
Pixel
);
397
_graphics.DrawImage(_backgroundImage, invalidRect, invalidRect, GraphicsUnit.
Pixel
);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1035
GraphicsUnit.
Pixel
);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2276
GraphicsUnit.
Pixel
))
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
203
graphics.DrawImage(bitmap, destinationBounds, sourceBounds, GraphicsUnit.
Pixel
);