114 instantiations of Bitmap
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (2)
280Bitmap bitmap = new Bitmap(bitmapStream); 298this.toolboxItem.Bitmap = new Bitmap(this.BitmapName);
System.Drawing (14)
commonui\System\Drawing\Bitmap.cs (2)
474Bitmap result = new Bitmap(); 584result = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppArgb);
commonui\System\Drawing\BitmapSelector.cs (1)
215return new Bitmap(GetResourceStream(type, originalName));
commonui\System\Drawing\Design\ToolboxItem.cs (1)
759itemBitmap = new Bitmap(itemBitmap, new Size(iconWidth, iconHeight));
commonui\System\Drawing\Icon.cs (4)
966bitmap = new Bitmap(Size.Width, Size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); 1027bitmap = new Bitmap(bmpData.Width, bmpData.Height, PixelFormat.Format32bppArgb); 1065bitmap = new Bitmap(size.Width, size.Height); // initialized to transparent 1110bitmap = new Bitmap(stream);
commonui\System\Drawing\ImageConverter.cs (1)
147image = new Bitmap(image, image.Width, image.Height);
commonui\System\Drawing\ToolboxBitmapAttribute.cs (4)
219img = new Bitmap((Bitmap)smallImage, largeSize.Width, largeSize.Height); 365Bitmap b = new Bitmap(stream); 369img = new Bitmap(b, largeSize.Width , largeSize.Height); 492bitmap = new Bitmap(stream);
misc\DpiHelper.cs (1)
457deviceImage = new Bitmap(deviceImageSize.Width, deviceImageSize.Height, logicalImage.PixelFormat);
System.Messaging (2)
System\Messaging\Design\QueuePathDialog.cs (2)
255this.icons.Images.Add(new Bitmap(typeof(MessageQueue), "Machine.bmp")); 256this.icons.Images.Add(new Bitmap(typeof(MessageQueue), "PublicQueue.bmp"));
System.Web.DataVisualization (8)
Common\Annotation\TextAnnotation.cs (1)
937graphicsImage = new System.Drawing.Bitmap(Common.ChartPicture.Width, Common.ChartPicture.Height);
Common\General\Chart.cs (3)
249using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) 320image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height)); 1623Bitmap image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height));
Common\General\ChartGraphics.cs (1)
401 Bitmap bitmap = new Bitmap(image.Width, image.Height);
Common\Utilities\ImageLoader.cs (1)
412Bitmap scaledImage = new Bitmap(image, new Size((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (2)
715 System.Drawing.Bitmap image = new Bitmap(tempImage); // !!! .Net bug when image source stream is closed - can create brush using the image 3193 objValue = new Bitmap(System.Drawing.Image.FromStream(imageStream)); // !!! .Net bug when image source stream is closed - can create brush using the image
System.Web.Entity.Design (2)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
215return new Bitmap(GetResourceStream(type, originalName));
System\Data\WebControls\Design\EntityDataSourceWizardForm.cs (1)
32this.SetGlyph(new Bitmap(BitmapSelector.GetResourceStream(typeof(EntityDataSourceWizardForm), "EntityDataSourceWizard.bmp")));
System.Web.Mobile (3)
UI\MobileControls\Design\Util\ImageCreator.cs (2)
34using(Bitmap bmp = new Bitmap(1,1)) 111Bitmap bitmap = new Bitmap(width, height);
UI\MobileControls\Design\Util\WbmpConverter.cs (1)
49Bitmap bitmap = new Bitmap(width, height);
System.Windows.Forms (64)
misc\DpiHelper.cs (1)
457deviceImage = new Bitmap(deviceImageSize.Width, deviceImageSize.Height, logicalImage.PixelFormat);
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
215return new Bitmap(GetResourceStream(type, originalName));
winforms\Managed\System\WinForms\BindingNavigator.cs (6)
192Bitmap moveFirstImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveFirst.bmp"); 193Bitmap movePreviousImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MovePrevious.bmp"); 194Bitmap moveNextImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveNext.bmp"); 195Bitmap moveLastImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveLast.bmp"); 196Bitmap addNewImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.AddNew.bmp"); 197Bitmap deleteImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.Delete.bmp");
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
120using (Bitmap b = new Bitmap(2, 2)) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (1)
258Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\Control.cs (1)
6170using (Bitmap image = new Bitmap(width, height, bitmap.PixelFormat)) {
winforms\Managed\System\WinForms\ControlPaint.cs (7)
1279Bitmap bitmap = new Bitmap(rectangle.Width, rectangle.Height); 1362using (Bitmap bitmap = new Bitmap(width, height)) { 1476Bitmap bitmap = new Bitmap(width, height); 1596using (Bitmap bmp = new Bitmap(image.Width, image.Height)) { 2156Bitmap bitmap = new Bitmap(patternSize, patternSize); 2204Bitmap b = new Bitmap(2,2); 2276Bitmap bitmap = new Bitmap(patternSize, patternSize);
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
387b = new Bitmap(typeof(DataGridCaption), bitmapName);
winforms\Managed\System\WinForms\DataGridParentRows.cs (1)
744b = new Bitmap(typeof(DataGridParentRows), bitmapName);
winforms\Managed\System\WinForms\DataGridRow.cs (1)
220b = new Bitmap(typeof(DataGridCaption), bitmapName);
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1542Bitmap b = new Bitmap(typeof(DataGridViewCell), bitmapName);
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1434Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
862bmFlipXPThemes = this.FlipXPThemesBitmap = new Bitmap(backgroundBounds.Width, backgroundBounds.Height);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (1)
111errorBmp = new Bitmap(typeof(DataGridView), "ImageInError.bmp");
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (1)
834using (Bitmap bmFlipXPThemes = new Bitmap(backgroundBounds.Height, backgroundBounds.Width)) {
winforms\Managed\System\WinForms\Design\PropertyTab.cs (1)
46bitmap = new Bitmap(GetType(), bmpName);
winforms\Managed\System\WinForms\ImageList.cs (4)
446bitmap = new Bitmap((Image)original.image); 471bitmap = new Bitmap(source, ImageSize); 725result = new Bitmap(imageSize.Width, imageSize.Height, PixelFormat.Format32bppArgb); 745result = new Bitmap(imageSize.Width, imageSize.Height);
winforms\Managed\System\WinForms\ListView.cs (1)
3232Bitmap bm = new Bitmap(this.BackgroundImage);
winforms\Managed\System\WinForms\PictureBox.cs (2)
300new Bitmap(typeof(PictureBox), 501new Bitmap(typeof(PictureBox),
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
81Bitmap bitmaps = new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip.bmp");
winforms\Managed\System\WinForms\PropertyGrid.cs (6)
2067bitmap = new Bitmap(bitmap, new Size(16,16)); 2464this.imageList[LARGE_BUTTONS].Images.Add(new Bitmap((Bitmap)images[i], largeButtonSize.Width, largeButtonSize.Height)); 2479Bitmap transparentBitmap = new Bitmap(originalBitmap); 4561return new Bitmap(typeof(PropertyGrid), "PBAlpha.bmp"); 4576return new Bitmap(typeof(PropertyGrid), "PBCatego.bmp"); 4591return new Bitmap(typeof(PropertyGrid), "PBPPage.bmp");
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
78expandImage = new Bitmap(typeof(ThreadExceptionDialog), "down.bmp"); 83collapseImage = new Bitmap(typeof(ThreadExceptionDialog), "up.bmp");
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
1121bitmap = new Bitmap(scaledIconWidth, scaledIconHeight); 5636sizeGripGlyph = new Bitmap(ResizeGripSize, ResizeGripSize, g);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (4)
319expandImage = new Bitmap(this.GetType(), DownBitmapName); 321collapseImage = new Bitmap(this.GetType(), UpBitmapName); 365expandImage = new Bitmap(this.GetType(), DownBitmapName); 371collapseImage = new Bitmap(this.GetType(), UpBitmapName);
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2839using (Bitmap image = new Bitmap(bounds.Width, bounds.Height))
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (3)
285Bitmap indeterminateCheckedBmp = new Bitmap(typeof(ToolStripMenuItem), "IndeterminateChecked.bmp"); 304Bitmap checkedBmp = new Bitmap(typeof(ToolStripMenuItem), "Checked.bmp"); 817Bitmap image = new Bitmap(16, 16);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
937using (Bitmap textBmp = new Bitmap(textSize.Width, textSize.Height,PixelFormat.Format32bppPArgb)) { 1079Bitmap disabledBitmap = new Bitmap(size.Width, size.Height);
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (2)
69downScrollImage = new Bitmap(typeof(ToolStripScrollButton), "ScrollButtonDown.bmp"); 87upScrollImage = new Bitmap(typeof(ToolStripScrollButton), "ScrollButtonUp.bmp");
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
368bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerOKSm.bmp"); 379bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerWarningSm.bmp"); 391bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerHighRiskSm.bmp");
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (4)
412Bitmap globeBmp = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerGlobe.bmp"); 657bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerOK.bmp"); 669bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerWarning.bmp"); 682bitmap = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerHighRisk.bmp");
System.Windows.Forms.DataVisualization (9)
Common\Annotation\TextAnnotation.cs (1)
937graphicsImage = new System.Drawing.Bitmap(Common.ChartPicture.Width, Common.ChartPicture.Height);
Common\General\Chart.cs (3)
249using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) 320image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height)); 1623Bitmap image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height));
Common\General\ChartGraphics.cs (1)
401 Bitmap bitmap = new Bitmap(image.Width, image.Height);
Common\Utilities\ImageLoader.cs (1)
412Bitmap scaledImage = new Bitmap(image, new Size((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (2)
715 System.Drawing.Bitmap image = new Bitmap(tempImage); // !!! .Net bug when image source stream is closed - can create brush using the image 3193 objValue = new Bitmap(System.Drawing.Image.FromStream(imageStream)); // !!! .Net bug when image source stream is closed - can create brush using the image
WinForm\ChartWinControl.cs (1)
439paintBufferBitmap = new Bitmap((int)(ClientRectangle.Width * scaleX), (int)(ClientRectangle.Height * scaleY), e.Graphics);
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
2750image = new Bitmap(imageFilePath);
System.Workflow.ComponentModel (8)
AuthoringOM\Design\ActivityDesigner.cs (2)
1060Bitmap designerImage = new Bitmap(Size.Width + (4 * ambientTheme.Margin.Width), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb); 1978using (Bitmap temporaryBitmap = new Bitmap(designerTheme.Size.Width, designerTheme.Size.Height, PixelFormat.Format32bppArgb))
AuthoringOM\Design\DesignerHelpers.cs (1)
1481image = new Bitmap(imageFilePath);
AuthoringOM\Design\DesignerWidgets.cs (1)
1932using (Bitmap bitmap = new Bitmap(tabTextRectangle.Height, tabTextRectangle.Width, e.Graphics))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
679draggedImage = new Bitmap(draggedImageSize.Width, draggedImageSize.Height, PixelFormat.Format32bppArgb);
AuthoringOM\Design\WorkflowView.cs (3)
1034this.viewPortBitmap = new Bitmap(Math.Max(1, ViewPortSize.Width), Math.Max(1, ViewPortSize.Height), e.Graphics); 1536viewPortData.MemoryBitmap = new Bitmap(viewPortData.LogicalViewPort.Width, viewPortData.LogicalViewPort.Height, graphics); 1655Bitmap temporaryBitmap = new Bitmap(memoryBitmap);
System.WorkflowServices (1)
System\Workflow\Activities\Design\RichListBox.cs (1)
245listItemBitmapCache.Add(viewType.Name, new Bitmap(listItemRenderer.Size.Width, listItemRenderer.Size.Height));
421 references to Bitmap
System.Activities.Presentation (9)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemImageConverter.cs (3)
20[ValueConversion(typeof(Bitmap), typeof(ImageSource))] 25Bitmap source = value as Bitmap;
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (6)
35Bitmap defaultBitmap; 168public Bitmap Bitmap 250internal static Bitmap CreateBitmapFromDrawingBrush(DrawingBrush resource) 280Bitmap bitmap = new Bitmap(bitmapStream); 284internal static Bitmap GetBitmapFromResource(string resourceString) 302Bitmap bitmap = GetBitmapFromResource(this.toolboxItem.TypeName);
System.Drawing (82)
commonui\System\Drawing\Advanced\BitmapData.cs (4)
32/// Specifies the pixel width of the <see cref='System.Drawing.Bitmap'/>. 41/// Specifies the pixel height of the <see cref='System.Drawing.Bitmap'/>. 50/// Specifies the stride width of the <see cref='System.Drawing.Bitmap'/>. 60/// information in this <see cref='System.Drawing.Bitmap'/>.
commonui\System\Drawing\Advanced\ColorAdjustType.cs (1)
34/// <see cref='System.Drawing.Bitmap'/>
commonui\System\Drawing\Bitmap.cs (28)
47/// <see cref='System.Drawing.Bitmap'/> 85/// Initializes a new instance of the <see cref='System.Drawing.Bitmap'/> class from the specified 127/// Initializes a new instance of the <see cref='System.Drawing.Bitmap'/> class from a specified resource. 159/// <see cref='System.Drawing.Bitmap'/> 194/// Initializes a new instance of the <see cref='System.Drawing.Bitmap'/> class from the specified data 275/// <see cref='System.Drawing.Bitmap'/> 286/// <see cref='System.Drawing.Bitmap'/> 308/// <see cref='System.Drawing.Bitmap'/> 319/// <see cref='System.Drawing.Bitmap'/> 348/// Creates a <see cref='System.Drawing.Bitmap'/> from a Windows handle to an 353public static Bitmap FromHicon(IntPtr hicon) { 363return Bitmap.FromGDIplus(bitmap); 371public static Bitmap FromResource(IntPtr hinstance, String bitmapName) 388return Bitmap.FromGDIplus(bitmap); 455/// Initializes a new instance of the <see cref='System.Drawing.Bitmap'/> class, from the specified 473internal static Bitmap FromGDIplus(IntPtr handle) { 474Bitmap result = new Bitmap(); 487public Bitmap Clone(Rectangle rect, PixelFormat format) { 508return Bitmap.FromGDIplus(dstHandle); 521public Bitmap Clone(RectangleF rect, PixelFormat format) { 542return Bitmap.FromGDIplus(dstHandle); 548/// Makes the default transparent color transparent for this <see cref='System.Drawing.Bitmap'/> 567/// for this <see cref='System.Drawing.Bitmap'/>. 581Bitmap result = null; 659/// Unlocks this <see cref='System.Drawing.Bitmap'/> from system memory. 673/// in this <see cref='System.Drawing.Bitmap'/>. 699/// Sets the color of the specified pixel in this <see cref='System.Drawing.Bitmap'/> . 723/// Sets the resolution for this <see cref='System.Drawing.Bitmap'/>.
commonui\System\Drawing\BitmapSelector.cs (1)
214public static Bitmap CreateBitmap(Type type, string originalName) {
commonui\System\Drawing\Design\ToolboxItem.cs (8)
127public Bitmap Bitmap { 129return (Bitmap)Properties["Bitmap"]; 141public Bitmap OriginalBitmap { 143return (Bitmap)Properties["OriginalBitmap"]; 753Bitmap itemBitmap = attr.GetImage(type, false) as Bitmap; 880ValidatePropertyType(propertyName, value, typeof(Bitmap), true); 884ValidatePropertyType(propertyName, value, typeof(Bitmap), true);
commonui\System\Drawing\Icon.cs (9)
949public Bitmap ToBitmap() { 961private Bitmap BmpFrame() { 962Bitmap bitmap = null; 1007Bitmap tmpBitmap = null; 1016tmpBitmap = Bitmap.FromHbitmap(info.hbmColor); 1073using(Bitmap tmpBitmap = Bitmap.FromHicon(this.Handle)) { 1105private Bitmap PngFrame() { 1106Bitmap bitmap = null;
commonui\System\Drawing\IconConverter.cs (2)
55if (destinationType == typeof(Image) || destinationType == typeof(Bitmap)) { 99if (destinationType == typeof(Image) || destinationType == typeof(Bitmap)) {
commonui\System\Drawing\Image.cs (6)
495image = Bitmap.FromGDIplus(nativeImage); 1317/// Creates a <see cref='System.Drawing.Bitmap'/> from a Windows handle. 1321public static Bitmap FromHbitmap(IntPtr hbitmap) { 1330/// Creates a <see cref='System.Drawing.Bitmap'/> from the specified Windows 1336public static Bitmap FromHbitmap(IntPtr hbitmap, IntPtr hpalette) { 1345return Bitmap.FromGDIplus(bitmap);
commonui\System\Drawing\ToolboxBitmapAttribute.cs (14)
48private Bitmap originalBitmap; 219img = new Bitmap((Bitmap)smallImage, largeSize.Width, largeSize.Height); 222Bitmap b = img as Bitmap; 253internal Bitmap GetOriginalBitmap() { 271originalBitmap = GetImageFromFile(imageFile, false, false) as Bitmap; 274originalBitmap = GetImageFromResource(imageType, imageName, false, false) as Bitmap; 289Bitmap b = sizedico.ToBitmap(); 336Bitmap b = image as Bitmap; 365Bitmap b = new Bitmap(stream); 372b = (Bitmap)img; 466private static void MakeBackgroundAlphaZero(Bitmap img) { 489Bitmap bitmap = null;
misc\DpiHelper.cs (9)
454private static Bitmap ScaleBitmapToSize(Bitmap logicalImage, Size deviceImageSize) 456Bitmap deviceImage; 479private static Bitmap CreateScaledBitmap(Bitmap logicalImage, int deviceDpi = 0) 567public static Bitmap CreateResizedBitmap(Bitmap logicalImage, Size targetImageSize) 582public static void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap, int deviceDpi = 0) 588Bitmap deviceBitmap = CreateScaledBitmap(logicalBitmap, deviceDpi);
System.Web.DataVisualization (8)
Common\General\Chart.cs (5)
249using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) 302public Bitmap GetImage() 309public Bitmap GetImage(float resolution) 313Bitmap image = null; 1623Bitmap image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height));
Common\General\ChartGraphics.cs (1)
401 Bitmap bitmap = new Bitmap(image.Width, image.Height);
Common\Utilities\ImageLoader.cs (1)
412Bitmap scaledImage = new Bitmap(image, new Size((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (1)
715 System.Drawing.Bitmap image = new Bitmap(tempImage); // !!! .Net bug when image source stream is closed - can create brush using the image
System.Web.Entity.Design (3)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
214public static Bitmap CreateBitmap(Type type, string originalName) {
Properties\Resources.Designer.cs (2)
63internal static System.Drawing.Bitmap EntityDataSourceWizard { 66return ((System.Drawing.Bitmap)(obj));
System.Web.Mobile (14)
UI\MobileControls\Design\ImageDesigner.cs (1)
143Bitmap bitmap = WbmpConverter.Convert(buffer);
UI\MobileControls\Design\Util\GenericUI.cs (5)
29internal static readonly Bitmap SortDownIcon = 32internal static readonly Bitmap SortUpIcon = 35internal static readonly Bitmap DeleteIcon = 38internal static readonly Bitmap ErrorIcon = 41internal static readonly Bitmap InfoIcon =
UI\MobileControls\Design\Util\ImageCreator.cs (3)
34using(Bitmap bmp = new Bitmap(1,1)) 60Bitmap errorIcon = infoMode? GenericUI.InfoIcon : GenericUI.ErrorIcon; 111Bitmap bitmap = new Bitmap(width, height);
UI\MobileControls\Design\Util\TemporaryBitmapFile.cs (3)
28private Bitmap _bitmap; 30internal TemporaryBitmapFile(Bitmap bitmap) 81internal Bitmap UnderlyingBitmap
UI\MobileControls\Design\Util\WbmpConverter.cs (2)
32internal static Bitmap Convert(Byte[] buffer) 49Bitmap bitmap = new Bitmap(width, height);
System.Windows.Forms (210)
misc\DpiHelper.cs (12)
454private static Bitmap ScaleBitmapToSize(Bitmap logicalImage, Size deviceImageSize) 456Bitmap deviceImage; 479private static Bitmap CreateScaledBitmap(Bitmap logicalImage, int deviceDpi = 0) 567public static Bitmap CreateResizedBitmap(Bitmap logicalImage, Size targetImageSize) 582public static void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap, int deviceDpi = 0) 588Bitmap deviceBitmap = CreateScaledBitmap(logicalBitmap, deviceDpi); 620Bitmap buttonBitmap = button.Image as Bitmap; 625Bitmap deviceBitmap = CreateScaledBitmap(buttonBitmap);
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
214public static Bitmap CreateBitmap(Type type, string originalName) {
winforms\Managed\System\Resources\ResXFileRef.cs (1)
319} else if(toCreate.Equals(typeof(System.Drawing.Bitmap)) && fileName.EndsWith(".ico")) {
winforms\Managed\System\WinForms\AxHost.cs (3)
1399new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) 4746Bitmap bmp = image as Bitmap;
winforms\Managed\System\WinForms\BindingNavigator.cs (6)
192Bitmap moveFirstImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveFirst.bmp"); 193Bitmap movePreviousImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MovePrevious.bmp"); 194Bitmap moveNextImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveNext.bmp"); 195Bitmap moveLastImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveLast.bmp"); 196Bitmap addNewImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.AddNew.bmp"); 197Bitmap deleteImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.Delete.bmp");
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
120using (Bitmap b = new Bitmap(2, 2)) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (6)
24private static Bitmap checkImageChecked = null; 29private static Bitmap checkImageIndeterminate = null; 154Bitmap checkImage = null; 240private static Bitmap GetCheckBoxImage(Color checkColor, Rectangle fullSize, ref Color cacheCheckColor, ref Bitmap cacheCheckImage) 258Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (4)
29Type pictureType = typeof(Bitmap); 77pictureType = typeof(Bitmap); 118else if (lastManaged is Bitmap) { 119pictdesc = NativeMethods.PICTDESC.CreateBitmapPICTDESC(((Bitmap)lastManaged).GetHbitmap(), lastPalette);
winforms\Managed\System\WinForms\Control.cs (3)
6151public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds) { 6170using (Bitmap image = new Bitmap(width, height, bitmap.PixelFormat)) { 7753public void ScaleBitmapLogicalToDevice(ref Bitmap logicalBitmap) {
winforms\Managed\System\WinForms\ControlPaint.cs (12)
37private static Bitmap checkImage; // image used to render checkmarks 151private static IntPtr CreateBitmapInfo(Bitmap bitmap, IntPtr hdcS) { 193public static IntPtr CreateHBitmap16Bit(Bitmap bitmap, Color background) { 250public static IntPtr CreateHBitmapTransparencyMask(Bitmap bitmap) { 303public static IntPtr CreateHBitmapColorMask(Bitmap bitmap, IntPtr monochromeMask) { 1279Bitmap bitmap = new Bitmap(rectangle.Width, rectangle.Height); 1362using (Bitmap bitmap = new Bitmap(width, height)) { 1476Bitmap bitmap = new Bitmap(width, height); 1596using (Bitmap bmp = new Bitmap(image.Width, image.Height)) { 2156Bitmap bitmap = new Bitmap(patternSize, patternSize); 2204Bitmap b = new Bitmap(2,2); 2276Bitmap bitmap = new Bitmap(patternSize, patternSize);
winforms\Managed\System\WinForms\DataGridCaption.cs (13)
64private static Bitmap leftButtonBitmap; 65private static Bitmap leftButtonBitmap_bidi; 66private static Bitmap magnifyingGlassBitmap; 384private Bitmap GetBitmap(string bitmapName) { 385Bitmap b = null; 398private Bitmap GetBackButtonBmp(bool alignRight) { 412private Bitmap GetDetailsBmp() { 429Bitmap backButtonBmp = GetBackButtonBmp(false); 442Bitmap detailsBmp = GetDetailsBmp(); 451Bitmap detailsBmp = GetDetailsBmp(); 535private void PaintIcon(Graphics g, Rectangle bounds, Bitmap b) { 543Bitmap backButtonBmp = GetBackButtonBmp(alignRight); 550Bitmap detailsBmp = GetDetailsBmp();
winforms\Managed\System\WinForms\DataGridParentRows.cs (9)
43private static Bitmap rightArrow = null; 44private static Bitmap leftArrow = null; 741private Bitmap GetBitmap(string bitmapName, Color transparentColor) { 742Bitmap b = null; 755private Bitmap GetRightArrowBitmap() 764private Bitmap GetLeftArrowBitmap() 771private void PaintBitmap(Graphics g, Bitmap b, Rectangle bounds) 804Bitmap bmp = GetLeftArrowBitmap(); 833Bitmap bmp = GetRightArrowBitmap();
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
569Bitmap bmp = GetErrorBitmap();
winforms\Managed\System\WinForms\DataGridRow.cs (15)
54private static Bitmap rightArrow = null; 55private static Bitmap leftArrow = null; 56private static Bitmap errorBmp = null; 57private static Bitmap pencilBmp = null; 58private static Bitmap starBmp = null; 217protected Bitmap GetBitmap(string bitmapName) { 218Bitmap b = null; 269protected Bitmap GetStarBitmap() { 282protected Bitmap GetPencilBitmap() { 294protected Bitmap GetErrorBitmap() { 303protected Bitmap GetLeftArrowBitmap() { 311protected Bitmap GetRightArrowBitmap() { 555protected Rectangle PaintIcon(Graphics g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp) { 559protected Rectangle PaintIcon(Graphics g, Rectangle visualBounds, bool paintIcon, bool alignToRight, Bitmap bmp, Brush backBrush) { 594Bitmap bmp;
winforms\Managed\System\WinForms\DataGridViewCell.cs (6)
65private static Bitmap errorBmp = null; 276private static Bitmap ErrorBitmap 1540private static Bitmap GetBitmap(string bitmapName) 1542Bitmap b = new Bitmap(typeof(DataGridViewCell), bitmapName); 1545Bitmap scaledBitmap = DpiHelper.CreateResizedBitmap(b, new Size(iconsWidth, iconsHeight)); 4311Bitmap bmp = DataGridViewCell.ErrorBitmap;
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
40private static Bitmap checkImage = null; 1434Bitmap bitmap = new Bitmap(fullSize.Width, fullSize.Height);
winforms\Managed\System\WinForms\DataGridViewColumnHeaderCell.cs (1)
857Bitmap bmFlipXPThemes = this.FlipXPThemesBitmap;
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (2)
110internal Bitmap FlipXPThemesBitmap 114return (Bitmap)this.Properties.GetObject(PropFlipXPThemesBitmap);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (2)
29private static Bitmap errorBmp = null; 105static internal Bitmap ErrorBitmap
winforms\Managed\System\WinForms\DataGridViewImageColumn.cs (2)
264this.DefaultCellStyle.NullValue is Bitmap && 265(Bitmap) this.DefaultCellStyle.NullValue == DataGridViewImageCell.ErrorBitmap)
winforms\Managed\System\WinForms\DataGridViewRowHeaderCell.cs (23)
33private static Bitmap rightArrowBmp = null; 34private static Bitmap leftArrowBmp = null; 35private static Bitmap rightArrowStarBmp; 36private static Bitmap leftArrowStarBmp; 38private static Bitmap pencilLTRBmp = null; 39private static Bitmap pencilRTLBmp = null; 40private static Bitmap starBmp = null; 70private static Bitmap LeftArrowBitmap 82private static Bitmap LeftArrowStarBitmap 94private static Bitmap PencilLTRBitmap 106private static Bitmap PencilRTLBitmap 118private static Bitmap RightArrowBitmap 130private static Bitmap RightArrowStarBitmap 142private static Bitmap StarBitmap 181private static Bitmap GetArrowBitmap(bool rightToLeft) 186private static Bitmap GetArrowStarBitmap(bool rightToLeft) 193private static Bitmap GetBitmapFromIcon(string iconName) 197Bitmap b = icon.ToBitmap(); 202Bitmap scaledBitmap = DpiHelper.CreateResizedBitmap(b, desiredSize); 639private static Bitmap GetPencilBitmap(bool rightToLeft) 834using (Bitmap bmFlipXPThemes = new Bitmap(backgroundBounds.Height, backgroundBounds.Width)) { 888Bitmap bmp = null; 1130private void PaintIcon(Graphics g, Bitmap bmp, Rectangle bounds, Color foreColor)
winforms\Managed\System\WinForms\DataObject.cs (10)
137private IntPtr GetCompatibleBitmap(Bitmap bm) { 526|| format.Equals((typeof(Bitmap)).FullName)) { 529(typeof(Bitmap)).FullName, 610if (format.Equals(DataFormats.Bitmap) && data is Bitmap) { 613Bitmap bm = (Bitmap)data; 1494format.Equals(typeof(Bitmap).FullName) || 1776s_allowedTypeName = typeof(Bitmap).FullName; 1777AssemblyName assemblyName = new AssemblyName(typeof(Bitmap).Assembly.FullName); 2169if (data is Bitmap && format.Equals(DataFormats.Dib)) {
winforms\Managed\System\WinForms\Design\PropertyTab.cs (2)
25private Bitmap bitmap; 38public virtual Bitmap Bitmap {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1698Bitmap bitmap = icon.ToBitmap();
winforms\Managed\System\WinForms\ImageList.cs (20)
431private Bitmap CreateBitmap(Original original, out bool ownsBitmap) { 437Bitmap bitmap; 438if (original.image is Bitmap) { 439bitmap = (Bitmap) original.image; 453Bitmap source = bitmap; 454bitmap = (Bitmap) bitmap.Clone(); 470Bitmap source = bitmap; 494private int AddToHandle(Original original, Bitmap bitmap) { 563Bitmap bitmapValue = CreateBitmap(original, out ownsBitmap); 692private Bitmap GetBitmap(int index) { 696Bitmap result=null; 709Bitmap tmpBitmap = null; 714tmpBitmap = Bitmap.FromHbitmap(imageInfo.hbmImage); 1152if (!(value is Bitmap)) 1156Bitmap bitmap = (Bitmap)value; 1162Bitmap source = bitmap; 1163bitmap = (Bitmap) bitmap.Clone(); 1326if (original.image is Bitmap) { 1333Bitmap bitmapValue = owner.CreateBitmap(original, out ownsBitmap);
winforms\Managed\System\WinForms\ListView.cs (1)
3232Bitmap bm = new Bitmap(this.BackgroundImage);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
2714public PICTDESCbmp(System.Drawing.Bitmap bitmap) {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
81Bitmap bitmaps = new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip.bmp");
winforms\Managed\System\WinForms\PropertyGrid.cs (14)
49private Bitmap bmpAlpha; 50private Bitmap bmpCategory; 51private Bitmap bmpPropPage; 1650private int AddImage(Bitmap image) { 2058Bitmap bitmap = tab.Bitmap; 2463if (images[i] is Bitmap) { 2464this.imageList[LARGE_BUTTONS].Images.Add(new Bitmap((Bitmap)images[i], largeButtonSize.Width, largeButtonSize.Height)); 2472private void AddLargeImage(Bitmap originalBitmap) { 2477Bitmap largeBitmap = null; 2479Bitmap transparentBitmap = new Bitmap(originalBitmap); 4386Bitmap b; 4559protected virtual Bitmap SortByPropertyImage { 4574protected virtual Bitmap SortByCategoryImage { 4589protected virtual Bitmap ShowPropertyPageImage {
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (2)
47private Bitmap expandImage = null; 48private Bitmap collapseImage = null;
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (8)
282Bitmap bitmap = CreateResizedBitmap("Arrow.ico", DOWNARROW_ICONWIDTH, DOWNARROW_ICONHEIGHT); 324private static Bitmap GetBitmapFromIcon(string iconName, int iconsWidth, int iconsHeight) { 327Bitmap b = icon.ToBitmap(); 331Bitmap scaledBitmap = DpiHelper.CreateResizedBitmap(b, desiredSize); 1101private Bitmap CreateResizedBitmap(string icon, int width, int height) { 1102Bitmap bitmap = null; 5461private Bitmap sizeGripGlyph; // our cached size grip glyph. Control paint only does right bottom glyphs, so we cache a mirrored one. See GetSizeGripGlyph 5629private Bitmap GetSizeGripGlyph(Graphics g) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
1808new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (2)
88private Bitmap expandImage = null; 89private Bitmap collapseImage = null;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2839using (Bitmap image = new Bitmap(bounds.Width, bounds.Height))
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
1262Bitmap bmp = value as Bitmap; 1294Bitmap currentImage = Image as Bitmap;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (7)
285Bitmap indeterminateCheckedBmp = new Bitmap(typeof(ToolStripMenuItem), "IndeterminateChecked.bmp"); 304Bitmap checkedBmp = new Bitmap(typeof(ToolStripMenuItem), "Checked.bmp"); 322private static Bitmap GetBitmapFromIcon(string iconName, Size desiredIconSize) 324Bitmap b = null; 341Bitmap scaledBitmap = DpiHelper.CreateResizedBitmap(b, desiredIconSize); 779return Bitmap.FromHbitmap(info.hbmpItem); 817Bitmap image = new Bitmap(16, 16);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
937using (Bitmap textBmp = new Bitmap(textSize.Width, textSize.Height,PixelFormat.Format32bppPArgb)) { 1079Bitmap disabledBitmap = new Bitmap(size.Width, size.Height);
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (2)
28private static Bitmap upScrollImage; 31private static Bitmap downScrollImage;
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (2)
358Bitmap bitmap; 403internal static Bitmap QueryDPiMatchedSmallBitmap(string iconName)
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (3)
402Bitmap bitmap; 412Bitmap globeBmp = new Bitmap(typeof(System.Windows.Forms.Form), "TrustManagerGlobe.bmp"); 646Bitmap bitmap;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
217new public void DrawToBitmap(Bitmap bitmap, Rectangle targetBounds)
System.Windows.Forms.DataVisualization (9)
Common\General\Chart.cs (5)
249using (Bitmap bitmap = new Bitmap(this.Width, this.Height)) 302public Bitmap GetImage() 309public Bitmap GetImage(float resolution) 313Bitmap image = null; 1623Bitmap image = new Bitmap(Math.Max(1,Width), Math.Max(1,Height));
Common\General\ChartGraphics.cs (1)
401 Bitmap bitmap = new Bitmap(image.Width, image.Height);
Common\Utilities\ImageLoader.cs (1)
412Bitmap scaledImage = new Bitmap(image, new Size((int)(image.Width * graphics.DpiX / image.HorizontalResolution),
Common\Utilities\XmlSerializer.cs (1)
715 System.Drawing.Bitmap image = new Bitmap(tempImage); // !!! .Net bug when image source stream is closed - can create brush using the image
WinForm\ChartWinControl.cs (1)
155 internal Bitmap paintBufferBitmap = null;
System.Workflow.Activities (4)
Designers\ActivityDesignerResources.cs (2)
89Bitmap bitmap = image as Bitmap;
Designers\StateDesigner.cs (2)
2742Bitmap image = null; 2770image = resourceManager.GetObject(name) as Bitmap;
System.Workflow.ComponentModel (53)
AuthoringOM\Design\ActivityDesigner.cs (2)
1060Bitmap designerImage = new Bitmap(Size.Width + (4 * ambientTheme.Margin.Width), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb); 1978using (Bitmap temporaryBitmap = new Bitmap(designerTheme.Size.Width, designerTheme.Size.Height, PixelFormat.Format32bppArgb))
AuthoringOM\Design\DesignerHelpers.cs (2)
1473Bitmap image = null; 1501image = resourceManager.GetObject(name) as Bitmap;
AuthoringOM\Design\DesignerInterfaces.cs (1)
159public Bitmap MemoryBitmap;
AuthoringOM\Design\DesignerResources.cs (2)
249Bitmap bitmap = image as Bitmap;
AuthoringOM\Design\DesignerWidgets.cs (1)
1932using (Bitmap bitmap = new Bitmap(tabTextRectangle.Height, tabTextRectangle.Width, e.Graphics))
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (3)
778Bitmap bitmap = TypeBrowserDialog.ResMgr.GetObject("IDB_SORTUP") as Bitmap; 781bitmap = TypeBrowserDialog.ResMgr.GetObject("IDB_SORTDOWN") as Bitmap;
AuthoringOM\Design\DocumentOutline.cs (2)
208Bitmap activityImage = activityDesigner.StockImage as Bitmap;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (4)
652Bitmap draggedImage = null; 655Bitmap image = null; 659image = DR.GetImage(DR.Activities) as Bitmap; 665image = toolboxBitmapAttribute.GetImage(draggedActivities[0].GetType()) as Bitmap;
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (2)
632Bitmap bitmap = image as Bitmap;
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (1)
211foreach (Bitmap image in this.draggedDesignerImages)
AuthoringOM\Design\Themes.cs (14)
1676internal static readonly Bitmap LeftScrollImage = DR.GetImage(DR.MoveLeft) as Bitmap; 1677internal static readonly Bitmap LeftScrollImageUp = DR.GetImage(DR.MoveLeftUp) as Bitmap; 1678internal static readonly Bitmap RightScrollImage = DR.GetImage(DR.MoveRight) as Bitmap; 1679internal static readonly Bitmap RightScrollImageUp = DR.GetImage(DR.MoveRightUp) as Bitmap; 1680internal static readonly Bitmap PreviewButtonImage = DR.GetImage(DR.PreviewModeIcon) as Bitmap; 1681internal static readonly Bitmap EditButtonImage = DR.GetImage(DR.EditModeIcon) as Bitmap; 1682internal static readonly Bitmap PreviewImage = DR.GetImage(DR.PreviewIndicator) as Bitmap;
AuthoringOM\Design\WorkflowLayouts.cs (4)
138Bitmap memoryBitmap = viewPortData.MemoryBitmap; 193Bitmap memoryBitmap = viewPortData.MemoryBitmap; 519Bitmap memoryBitmap = viewPortData.MemoryBitmap; 586Bitmap memoryBitmap = viewPortData.MemoryBitmap;
AuthoringOM\Design\WorkflowView.cs (15)
105private Bitmap viewPortBitmap = null; 649Bitmap tabImage = DR.GetImage(tabButtonInfo[i, 1]) as Bitmap; 972Bitmap workflowBitmap = TakeWorkflowSnapShot(); 993Bitmap workflowBitmap = TakeWorkflowSnapShot(); 1006Bitmap workflowBitmap = TakeWorkflowSnapShot(); 1526private Bitmap TakeWorkflowSnapShot() 1528Bitmap bitmap = null; 1557Bitmap memoryBitmap = viewPortData.MemoryBitmap; 1655Bitmap temporaryBitmap = new Bitmap(memoryBitmap); 1850ActionButton fitallButton = new ActionButton(new Image[] { DR.GetImage(DR.FitToScreen) as Bitmap }); 1867this.fitAllAction.Buttons[0].StateImages = new Bitmap[] { DR.GetImage(DR.FitToScreen) as Bitmap }; 1874this.fitAllAction.Buttons[0].StateImages = new Bitmap[] { DR.GetImage(DR.FitToWorkflow) as Bitmap };
System.WorkflowServices (29)
ImageResources.designer.cs (24)
63internal static System.Drawing.Bitmap Add { 66return ((System.Drawing.Bitmap)(obj)); 70internal static System.Drawing.Bitmap AddContract { 73return ((System.Drawing.Bitmap)(obj)); 77internal static System.Drawing.Bitmap AddOperation { 80return ((System.Drawing.Bitmap)(obj)); 84internal static System.Drawing.Bitmap Arrow { 87return ((System.Drawing.Bitmap)(obj)); 91internal static System.Drawing.Bitmap Check { 94return ((System.Drawing.Bitmap)(obj)); 98internal static System.Drawing.Bitmap Contract { 101return ((System.Drawing.Bitmap)(obj)); 105internal static System.Drawing.Bitmap Delete { 108return ((System.Drawing.Bitmap)(obj)); 112internal static System.Drawing.Bitmap Down { 115return ((System.Drawing.Bitmap)(obj)); 119internal static System.Drawing.Bitmap Import { 122return ((System.Drawing.Bitmap)(obj)); 126internal static System.Drawing.Bitmap ImportedContract { 129return ((System.Drawing.Bitmap)(obj)); 133internal static System.Drawing.Bitmap Operation { 136return ((System.Drawing.Bitmap)(obj)); 140internal static System.Drawing.Bitmap Up { 143return ((System.Drawing.Bitmap)(obj));
System\Workflow\Activities\Design\RichListBox.cs (5)
25Dictionary<string, Bitmap> listItemBitmapCache = null; 32listItemBitmapCache = new Dictionary<string, Bitmap>(); 139Bitmap rendererBitmap = GetRendererBitmap(itemToDraw); 235private Bitmap GetRendererBitmap(object listItem) 248Bitmap rendererBitmap = listItemBitmapCache[viewType.Name];