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