86 references to Width
System.Drawing (10)
commonui\System\Drawing\Bitmap.cs (5)
313
public Bitmap(Image original) : this(original, original.
Width
, original.Height) {
423
if(status == 2 /* invalid parameter*/ && (this.
Width
>= Int16.MaxValue || this.Height >= Int16.MaxValue)) {
554
if (Height > 0 &&
Width
> 0)
680
if (x < 0 || x >=
Width
) {
707
if (x < 0 || x >=
Width
) {
commonui\System\Drawing\Design\ToolboxItem.cs (1)
758
if ((itemBitmap.
Width
!= iconWidth || itemBitmap.Height != iconHeight)) {
commonui\System\Drawing\Graphics.cs (1)
2897
int width = Math.Min(rect.Width, image.
Width
);
commonui\System\Drawing\Icon.cs (1)
1023
bmpData = tmpBitmap.LockBits(new Rectangle(0,0, tmpBitmap.
Width
, tmpBitmap.Height), ImageLockMode.ReadOnly, tmpBitmap.PixelFormat);
commonui\System\Drawing\Image.cs (1)
821
return new Size(
Width
, Height);
commonui\System\Drawing\ImageConverter.cs (1)
147
image = new Bitmap(image, image.
Width
, image.Height);
System.Web.DataVisualization (17)
Common\General\ChartGraphics.cs (12)
401
Bitmap bitmap = new Bitmap(image.
Width
, image.Height);
406
graphics.FillRectangle(backBrush, 0, 0, image.
Width
, image.Height);
408
backFilledBrush= new TextureBrush( bitmap, new RectangleF(0,0,image.
Width
,image.Height), attrib);
419
textureBrush = new TextureBrush(image, new RectangleF(0, 0, image.
Width
, image.Height), attrib);
423
textureBrush = new TextureBrush(scaledImage, new RectangleF(0, 0, scaledImage.
Width
, scaledImage.Height), attrib);
749
0, 0, image.
Width
, image.Height,
757
0, 0, image.
Width
, image.Height,
2332
0, 0, labelImage.
Width
, labelImage.Height,
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.
Width
/ imageAbsSize.Width : image.
Width
,
4271
0, 0, image.
Width
, image.Height,
4569
0, 0, image.
Width
, image.Height,
Common\General\LegendColumns.cs (2)
2196
image.
Width
,
2330
image.
Width
,
Common\Utilities\ImageLoader.cs (3)
389
size.Width = image.
Width
* graphics.DpiX / image.HorizontalResolution;
394
size.Width = image.
Width
;
412
Bitmap scaledImage = new Bitmap(image, new Size((int)(image.
Width
* graphics.DpiX / image.HorizontalResolution),
System.Windows.Forms (32)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
586
graphics.DrawImage(image, imageBounds.X, imageBounds.Y, image.
Width
, image.Height);
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (1)
244
cacheCheckImage.
Width
== fullSize.Width &&
winforms\Managed\System\WinForms\ControlPaint.cs (9)
154
header.biWidth = bitmap.
Width
;
203
byte[] enoughBits = new byte[bitmap.
Width
* bitmap.Height];
255
int width = bitmap.
Width
;
519
g.DrawImage(backgroundImage, imageRectangle, 0, 0, backgroundImage.
Width
, backgroundImage.Height, GraphicsUnit.Pixel, imageAttrib);
1269
if (checkImage == null || checkImage.
Width
!= rectangle.Width || checkImage.Height != rectangle.Height) {
1524
g.DrawImage(image, dest, 0, 0, image.
Width
, image.Height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero);
1536
graphics.DrawImage(image, destination, 0,0, image.
Width
, image.Height,
1546
DrawImageDisabled(graphics, image, new Rectangle(x, y, image.
Width
, image.Height), background, false);
1596
using (Bitmap bmp = new Bitmap(image.
Width
, image.Height)) {
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
774
int bmpX = bounds.X + (bounds.Width - b.
Width
) / 2;
776
Rectangle bmpRect = new Rectangle(bmpX, bmpY, b.
Width
, b.Height);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1423
if (checkImage == null || checkImage.
Width
!= fullSize.Width || checkImage.Height != fullSize.Height)
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (3)
859
bmFlipXPThemes.
Width
< backgroundBounds.Width || bmFlipXPThemes.
Width
> 2 * backgroundBounds.Width ||
867
g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.
Width
- backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.Height), GraphicsUnit.Pixel);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (7)
495
if (imgWidthAllowed <= 0 || img.
Width
== 0)
501
preferredSize = new Size(0, Math.Min(img.Height, Decimal.ToInt32((decimal)img.Height * imgWidthAllowed / img.
Width
)));
536
preferredSize = new Size(Math.Min(img.
Width
, Decimal.ToInt32((decimal)img.
Width
* imgHeightAllowed / img.Height)), 0);
561
preferredSize = new Size(img.
Width
, img.Height);
884
g.DrawImage(img, imgBounds, 0, 0, img.
Width
, img.Height, GraphicsUnit.Pixel, attr);
898
Rectangle imgBounds2 = ImgBounds(imgBounds, (img == null) ? ico.Width : img.
Width
, (img == null) ? ico.Height : img.Height, imageLayout, cellStyle);
winforms\Managed\System\WinForms\ImageList.cs (3)
1400
if (value.
Width
== 0 || (value.
Width
% owner.ImageSize.Width) != 0)
1405
int nImages = value.
Width
/ owner.ImageSize.Width;
winforms\Managed\System\WinForms\Label.cs (1)
1199
g.DrawImage(image, loc.X, loc.Y, image.
Width
, image.Height);
winforms\Managed\System\WinForms\PictureBox.cs (1)
455
result.X += (result.Width - image.
Width
) / 2;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
324
detailsWidth += detailsBtn.Image.
Width
;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (1)
382
g.DrawImage(image, imageRect, 0, 0, image.
Width
, image.Height, GraphicsUnit.Pixel, attrs);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
821
g.DrawRectangle(SystemPens.Control, 0, 0, image.
Width
- 1, image.Height - 1);
System.Windows.Forms.DataVisualization (18)
Common\General\ChartGraphics.cs (12)
401
Bitmap bitmap = new Bitmap(image.
Width
, image.Height);
406
graphics.FillRectangle(backBrush, 0, 0, image.
Width
, image.Height);
408
backFilledBrush= new TextureBrush( bitmap, new RectangleF(0,0,image.
Width
,image.Height), attrib);
419
textureBrush = new TextureBrush(image, new RectangleF(0, 0, image.
Width
, image.Height), attrib);
423
textureBrush = new TextureBrush(scaledImage, new RectangleF(0, 0, scaledImage.
Width
, scaledImage.Height), attrib);
749
0, 0, image.
Width
, image.Height,
757
0, 0, image.
Width
, image.Height,
2332
0, 0, labelImage.
Width
, labelImage.Height,
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.
Width
/ imageAbsSize.Width : image.
Width
,
4271
0, 0, image.
Width
, image.Height,
4569
0, 0, image.
Width
, image.Height,
Common\General\LegendColumns.cs (2)
2196
image.
Width
,
2330
image.
Width
,
Common\Utilities\ImageLoader.cs (3)
389
size.Width = image.
Width
* graphics.DpiX / image.HorizontalResolution;
394
size.Width = image.
Width
;
412
Bitmap scaledImage = new Bitmap(image, new Size((int)(image.
Width
* graphics.DpiX / image.HorizontalResolution),
WinForm\ChartWinControl.cs (1)
429
paintBufferBitmap.
Width
< scaleX * ClientRectangle.Width ||
System.Workflow.ComponentModel (9)
AuthoringOM\Design\ActivityDesigner.cs (1)
1067
graphics.FillRectangle(transparentBrush, 0, 0, designerImage.
Width
, designerImage.Height);
AuthoringOM\Design\DesignerWidgets.cs (4)
1936
graphics.FillRectangle(backgroundBrush, new Rectangle(0, 0, bitmap.
Width
, bitmap.Height));
1937
graphics.DrawString(this.tabItemList[tabItemIndex].Text, Font, SystemBrushes.ControlText, new Rectangle(0, 0, bitmap.
Width
, bitmap.Height), stringFormat);
3460
double stretchFactor = ((double)previewedActivityImage.
Width
) / maxBitmapSize.Width;
3464
destnRectangle.Width = Convert.ToInt32(Math.Ceiling((float)previewedActivityImage.
Width
/ stretchFactor));
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
608
ActivityDesignerPaint.DrawImage(e.Graphics, this.dragImage, new Rectangle(this.dragImagePointInClientCoOrd, this.dragImage.Size), new Rectangle(0, 0, this.dragImage.
Width
, this.dragImage.Height), DesignerContentAlignment.Center, (this.dragImageSnapped) ? 1.0f : 0.5f, WorkflowTheme.CurrentTheme.AmbientTheme.DrawGrayscale);
685
draggedImageGraphics.FillRectangle(backgroundBrush, new Rectangle(0, 0, draggedImage.
Width
, draggedImage.Height));
AuthoringOM\Design\WorkflowView.cs (2)
1668
viewPortGraphics.DrawImage(temporaryBitmap, new Rectangle(-viewPortData.ShadowDepth.Width, -viewPortData.ShadowDepth.Height, memoryBitmap.
Width
, memoryBitmap.Height), 0, 0, memoryBitmap.
Width
, memoryBitmap.Height, GraphicsUnit.Pixel, transparentColorKey);