2 types derived from Image
System.Drawing.Common (2)
System\Drawing\Bitmap.cs (1)
20public sealed unsafe class Bitmap : Image, IPointer<GpBitmap>, IBitmap
System\Drawing\Imaging\Metafile.cs (1)
19public sealed unsafe class Metafile : Image, IPointer<GpMetafile>
455 references to Image
Microsoft.VisualBasic.Forms (5)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (5)
129''' Retrieves an <see cref="Image"/> from the <see cref="Clipboard"/>. 132Public Function GetImage() As Image 207''' Saves the passed in <see cref="Image"/> to the clipboard. 209''' <param name="image">The <see cref="Image"/> to be saved.</param> 210Public Sub SetImage(image As Image)
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
25internal override bool IsImage(object? data) => data is Image;
PresentationUI (5)
MS\Internal\Documents\Application\DocumentProperties.cs (2)
78internal Image Image 411private Image _image = null;
MS\Internal\Documents\SignatureResourceHelper.cs (3)
71internal static Drawing.Image GetImageFromStatus( 92return (Drawing.Image)Resources.ResourceManager.GetObject(resourceName); 347public System.Drawing.Image _displayImage;
System.Drawing (1)
System.Drawing.cs (1)
65[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Image))]
System.Drawing.Common (142)
System\Drawing\Bitmap.cs (5)
112public Bitmap(Image original) : this(original, original.Width, original.Height) 116public Bitmap(Image original, Size newSize) : this(original, newSize.Width, newSize.Height) 120public Bitmap(Image original, int width, int height) : this(width, height, PixelFormat.Format32bppArgb) 132nint IPointer<GpBitmap>.Pointer => (nint)((Image)this).Pointer(); 442/// transformation and will effective just call <see cref="Image.Palette"/> to set the palette when the conversion
System\Drawing\Graphics.cs (43)
40private Image? _backingImage; 126/// Creates an instance of the <see cref='Graphics'/> class from an existing <see cref='Image'/>. 128public static Graphics FromImage(Image image) 1996public void DrawImage(Image image, PointF point) => DrawImage(image, point.X, point.Y); 1998public void DrawImage(Image image, float x, float y) 2006public void DrawImage(Image image, RectangleF rect) => DrawImage(image, rect.X, rect.Y, rect.Width, rect.Height); 2008public void DrawImage(Image image, float x, float y, float width, float height) 2016public void DrawImage(Image image, Point point) => DrawImage(image, (float)point.X, point.Y); 2018public void DrawImage(Image image, int x, int y) => DrawImage(image, (float)x, y); 2020public void DrawImage(Image image, Rectangle rect) => DrawImage(image, (float)rect.X, rect.Y, rect.Width, rect.Height); 2022public void DrawImage(Image image, int x, int y, int width, int height) => DrawImage(image, (float)x, y, width, height); 2024public void DrawImageUnscaled(Image image, Point point) => DrawImage(image, point.X, point.Y); 2026public void DrawImageUnscaled(Image image, int x, int y) => DrawImage(image, x, y); 2028public void DrawImageUnscaled(Image image, Rectangle rect) => DrawImage(image, rect.X, rect.Y); 2030public void DrawImageUnscaled(Image image, int x, int y, int width, int height) => DrawImage(image, x, y); 2032public void DrawImageUnscaledAndClipped(Image image, Rectangle rect) 2044public void DrawImage(Image image, PointF[] destPoints) 2072public void DrawImage(Image image, Point[] destPoints) 2089public void DrawImage(Image image, float x, float y, RectangleF srcRect, GraphicsUnit srcUnit) 2104public void DrawImage(Image image, int x, int y, Rectangle srcRect, GraphicsUnit srcUnit) 2107public void DrawImage(Image image, RectangleF destRect, RectangleF srcRect, GraphicsUnit srcUnit) 2125public void DrawImage(Image image, Rectangle destRect, Rectangle srcRect, GraphicsUnit srcUnit) 2128public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit) 2154public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit, ImageAttributes? imageAttr) => 2158Image image, 2167Image image, 2201public void DrawImage(Image image, Point[] destPoints, Rectangle srcRect, GraphicsUnit srcUnit) => 2205Image image, 2212Image image, 2220Image image, 2256Image image, 2265Image image, 2275Image image, 2286Image image, 2316Image image, 2325Image image, 2335Image image, 2346Image image, 2643private static void IgnoreMetafileErrors(Image image, ref Status errorStatus) 3613/// <inheritdoc cref="DrawImage(Image, Effect, RectangleF, Matrix?, GraphicsUnit, ImageAttributes?)"/> 3615Image image, 3621/// <param name="image"><see cref="Image"/> to be drawn.</param> 3628Image image,
System\Drawing\Icon.cs (1)
679tmpBitmap = Image.FromHbitmap(info.hbmColor);
System\Drawing\IconConverter.cs (2)
20|| destinationType == typeof(Image) || destinationType == typeof(Bitmap); 50else if (destinationType == typeof(Image) || destinationType == typeof(Bitmap))
System\Drawing\Image.cs (41)
82/// Creates an <see cref='Image'/> from the specified file. 84public static Image FromFile(string filename) => FromFile(filename, false); 86public static Image FromFile(string filename, bool useEmbeddedColorManagement) 116Image img = CreateImageObject(image); 122/// Creates an <see cref='Image'/> from the specified data stream. 124public static Image FromStream(Stream stream) => FromStream(stream, useEmbeddedColorManagement: false); 126public static Image FromStream(Stream stream, bool useEmbeddedColorManagement) => 129public static Image FromStream(Stream stream, bool useEmbeddedColorManagement, bool validateImageData) 139Image img = CreateImageObject(image); 181/// Cleans up Windows resources for this <see cref='Image'/>. 190/// Cleans up Windows resources for this <see cref='Image'/>. 195/// Creates an exact copy of this <see cref='Image'/>. 219/// Saves this <see cref='Image'/> to the specified file. 224/// Saves this <see cref='Image'/> to the specified file in the specified format. 240/// Saves this <see cref='Image'/> to the specified file in the specified format and with the specified encoder parameters. 291/// Saves this <see cref='Image'/> to the specified stream in the specified format. 300/// Saves this <see cref='Image'/> to the specified stream in the specified format. 332/// Adds an <see cref='EncoderParameters'/> to this <see cref='Image'/>. 361/// Adds an <see cref='EncoderParameters'/> to the specified <see cref='Image'/>. 363public void SaveAdd(Image image, Imaging.EncoderParameters? encoderParams) 403/// Gets the width and height of this <see cref='Image'/>. 419/// Gets the width and height of this <see cref='Image'/>. 424/// Gets the width of this <see cref='Image'/>. 441/// Gets the height of this <see cref='Image'/>. 458/// Gets the horizontal resolution, in pixels-per-inch, of this <see cref='Image'/>. 472/// Gets the vertical resolution, in pixels-per-inch, of this <see cref='Image'/>. 486/// Gets attribute flags for this <see cref='Image'/>. 501/// Gets the format of this <see cref='Image'/>. 515/// Gets the pixel format for this <see cref='Image'/>. 520/// Gets an array of the property IDs stored in this <see cref='Image'/>. 546/// Gets an array of <see cref='PropertyItem'/> objects that describe this <see cref='Image'/>. 580/// Gets a bounding rectangle in the specified units for this <see cref='Image'/>. 591/// Gets or sets the color palette used for this <see cref='Image'/>. 626/// Returns the thumbnail for this <see cref='Image'/>. 628public Image GetThumbnailImage(int thumbWidth, int thumbHeight, GetThumbnailImageAbort? callback, IntPtr callbackData) 672/// Gets the specified property item from this <see cref='Image'/>. 732/// Removes the specified property item from this <see cref='Image'/>. 741/// Returns information about the codecs used for this <see cref='Image'/>. 817/// Gets an array of GUIDs that represent the dimensions of frames within this <see cref='Image'/>. 854internal static Image CreateImageObject(GpImage* nativeImage) 870internal static unsafe void GetAnimatedGifRawData(Image image, string? filename, Stream? dataStream)
System\Drawing\ImageAnimator.cs (4)
97public static void UpdateFrames(Image? image) 196public static void Animate(Image image, EventHandler onFrameChangedHandler) 284public static bool CanAnimate([NotNullWhen(true)] Image? image) 312public static void StopAnimate(Image image, EventHandler onFrameChangedHandler)
System\Drawing\ImageConverter.cs (4)
33return Image.FromStream(memStream); 49else if (value is Image) 60else if (value is Image image) 75return TypeDescriptor.GetProperties(typeof(Image), attributes);
System\Drawing\ImageInfo.cs (3)
28public ImageInfo(Image image) 128/// use that event to call <see cref="UpdateFrames(Image)"/>.. 186internal Image Image { get; }
System\Drawing\Imaging\ImageFlags.cs (1)
7/// Specifies the attributes of the pixel data contained in an <see cref='Image'/> object.
System\Drawing\Imaging\ImageLockMode.cs (1)
7/// Indicates the access mode for an <see cref='Image'/>.
System\Drawing\PointerExtensions.cs (2)
28public static GpMetafile* Pointer(this Metafile? metafile) => metafile is null ? null : (GpMetafile*)((Image)metafile).Pointer(); 29public static GpImage* Pointer(this Image? image) => image is null ? null : image.GetPointer();
System\Drawing\Printing\PreviewPageInfo.cs (3)
11private readonly Image _image; 19public PreviewPageInfo(Image image, Size physicalSize) 28public Image Image => _image;
System\Drawing\Printing\PrinterSettings.cs (1)
370public bool IsDirectPrintingSupported(Image image)
System\Drawing\TextureBrush.cs (10)
17public TextureBrush(Image bitmap) : this(bitmap, Drawing2D.WrapMode.Tile) 21public TextureBrush(Image image, Drawing2D.WrapMode wrapMode) 36public TextureBrush(Image image, Drawing2D.WrapMode wrapMode, RectangleF dstRect) 55public TextureBrush(Image image, Drawing2D.WrapMode wrapMode, Rectangle dstRect) 60public TextureBrush(Image image, RectangleF dstRect) : this(image, dstRect, null) { } 62public TextureBrush(Image image, RectangleF dstRect, ImageAttributes? imageAttr) 81public TextureBrush(Image image, Rectangle dstRect) : this(image, dstRect, null) { } 83public TextureBrush(Image image, Rectangle dstRect, ImageAttributes? imageAttr) 141public Image Image 148return Image.CreateImageObject(image);
System\Drawing\ToolboxBitmapAttribute.cs (21)
16private Image? _smallImage; 17private Image? _largeImage; 35private ToolboxBitmapAttribute(Image? smallImage, Image? largeImage) 58public Image? GetImage(object? component) => GetImage(component, true); 60public Image? GetImage(object? component, bool large) => 63public Image? GetImage(Type type) => GetImage(type, false); 65public Image? GetImage(Type type, bool large) => GetImage(type, null, large); 67public Image? GetImage(Type type, string? imgName, bool large) 71Image? image = large ? _largeImage : _smallImage; 93image = (Image)image.Clone(); 107Image? toReturn = large ? _largeImage : _smallImage; 146private static Image? GetImageFromFile(string? imageFile, bool large, bool scaled = true) 148Image? image = null; 163image = Image.FromFile(imageFile!); 179private static Image? GetBitmapFromResource(Type t, string? bitmapName, bool large, bool scaled) 186Image? image = null; 219public static Image? GetImageFromResource(Type t, string? imageName, bool large) => 222internal static Image? GetImageFromResource(Type t, string? imageName, bool large, bool scaled) 224Image? image = null; 307public static readonly ToolboxBitmapAttribute Default = new(null, (Image?)null);
System.Windows.Forms (241)
System\Drawing\Design\PropertyValueUIItem.cs (3)
12/// <param name="uiItemImage"><see cref="Drawing.Image"/> representing the 8 x 8 icon to display.</param> 15public PropertyValueUIItem(Image uiItemImage, PropertyValueUIItemInvokeHandler handler, string? tooltip) 23public virtual Image Image { get; }
System\Drawing\Design\UITypeEditor.cs (1)
58[typeof(Image)] = $"System.Drawing.Design.ImageEditor, {Assemblies.SystemDrawingDesign}",
System\Windows\Forms\ActiveX\AxHost.cs (5)
264public override Image? BackgroundImage 3528protected static object? GetIPictureFromPicture(Image? image) => image?.CreateIPictureRCW(); 3541protected static object? GetIPictureDispFromPicture(Image? image) => image?.CreateIPictureDispRCW(); 3547protected static Image? GetPictureFromIPicture(object? picture) 3571protected static unsafe Image? GetPictureFromIPictureDisp(object? picture)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
71_lastManaged = Image.FromHbitmap(extendedHandle);
System\Windows\Forms\Control.cs (2)
933public virtual Image? BackgroundImage 935get => Properties.GetValueOrDefault<Image>(s_backgroundImageProperty);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
27private Image? _image; 417public Image? Image 576/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Drawing.Image"/>
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
376internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (10)
65/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 124/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 128/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 141/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 170/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 172public static void DrawButton(Graphics g, Rectangle bounds, Image image, Rectangle imageBounds, bool focused, PushButtonState state) 197/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 203Image image, 226Image image, 238Image image,
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (6)
49/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 83/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 101/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 155/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 162Image image, 187Image image,
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (7)
49/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 87/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 102/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 155/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 162Image image, 187Image image, 210Image image,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
269public override Image? BackgroundImage
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1034public override Image? BackgroundImage
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
912TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 917else if (typeof(Image).IsAssignableFrom(type) || imageTypeConverter.CanConvertFrom(type)) 943TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image));
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (7)
15private static readonly Type s_defaultTypeImage = typeof(Image); 386if (formattedValue is not Image img) 414Image? img = formattedValue as Image; 548Image? image = owningImageColumn.Image; 782Image? image = formattedValue as Image;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (2)
14private Image? _image; 121public Image? Image
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
144public override Image? BackgroundImage
System\Windows\Forms\Controls\ImageList\ImageList.cs (5)
300bitmap = new Bitmap((Image)original._image); 551Debug.Assert(Image.GetPixelFormatSize(sourceData.PixelFormat) == 32); 552Debug.Assert(Image.GetPixelFormatSize(sourceData.PixelFormat) == Image.GetPixelFormatSize(targetData.PixelFormat)); 623tmpBitmap = Image.FromHbitmap((IntPtr)imageInfo.hbmImage);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (18)
125public Image this[int index] 191if (value is not Image image) 203public Image? this[string key] 227public void Add(string key, Image image) 262if (value is not Image image) 282public void Add(Image value) 295public int Add(Image value, Color transparentColor) 371public void AddRange(params Image[] images) 376foreach (Image image in images) 389public int AddStrip(Image value) 430public bool Contains(Image image) => throw new NotSupportedException(); 434if (value is not Image image) 448public int IndexOf(Image image) => throw new NotSupportedException(); 452if (value is not Image image) 520Image[] images = new Image[Count]; 530public void Remove(Image image) => throw new NotSupportedException(); 534if (value is Image image)
System\Windows\Forms\Controls\ImageList\ImageList.Original.cs (1)
32if (image is not Icon and not Image)
System\Windows\Forms\Controls\Labels\Label.cs (11)
168public override Image? BackgroundImage 366public Image? Image 370Image? image = Properties.GetValueOrDefault<Image>(s_propImage); 854if (animate == currentlyAnimating || !Properties.TryGetValue(s_propImage, out Image? image)) 871protected Rectangle CalcImageRenderBounds(Image image, Rectangle r, ContentAlignment align) 964private void DrawImage(PaintEventArgs e, Image image, Rectangle r, ContentAlignment align) 978/// Draws an <see cref="Drawing.Image"/> within the specified bounds. 980protected void DrawImage(Graphics g, Image image, Rectangle r, ContentAlignment align) 983private void DrawImageInternal(Graphics g, Image image, Rectangle r, ContentAlignment align) 1253Image? i = Image;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
167public override Image? BackgroundImage
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
142protected internal override ToolStripItem CreateDefaultItem(string? text, Image? image, EventHandler? onClick)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
208public override Image? BackgroundImage
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (17)
39private Image? _image; 55private Image? _initialImage; 56private Image? _errorImage; 69private Image? _defaultInitialImage; 70private Image? _defaultErrorImage; 73private static Image? t_defaultInitialImageForThread; 76private static Image? t_defaultErrorImageForThread; 226public Image? ErrorImage 299public Image? Image 385public Image? InitialImage 417private void InstallNewImage(Image? value, ImageInstallationType installationType) 475Image img = Image.FromStream(_localImageStreamReader.BaseStream); 484Image img = Image.FromStream(_uriImageStream); 613Image? img = ErrorImage; 620img = Image.FromStream(_tempDownloadStream!);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
109public override Image? BackgroundImage
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
325public override Image? BackgroundImage
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
88internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) 94using Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1713using Bitmap bitmap = Image.FromHbitmap(compatibleBitmap);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
180public override Image? BackgroundImage
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
123public override Image? BackgroundImage
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
195public override Image? BackgroundImage
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (3)
91public static void DrawTabItem(Graphics g, Rectangle bounds, Image image, Rectangle imageRectangle, bool focused, TabItemState state) 111public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, Image image, Rectangle imageRectangle, bool focused, TabItemState state) 121public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, TextFormatFlags flags, Image image, Rectangle imageRectangle, bool focused, TabItemState state)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
303public override Image? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
253protected internal override ToolStripItem CreateDefaultItem(string? text, Image? image, EventHandler? onClick)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
942/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control. 1769protected internal virtual ToolStripItem CreateDefaultItem(string? text, Image? image, EventHandler? onClick) => 2578/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Image"/> displayed on a label control
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (4)
32public ToolStripButton(Image? image) 38public ToolStripButton(string? text, Image? image) 44public ToolStripButton(string? text, Image? image, EventHandler? onClick) 50public ToolStripButton(string? text, Image? image, EventHandler? onClick, string? name)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
86public override Image? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
105public new Image? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
69public override Image? BackgroundImage 232public override Image? Image
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (5)
34public ToolStripDropDownButton(Image? image) 40public ToolStripDropDownButton(string? text, Image? image) 46public ToolStripDropDownButton(string? text, Image? image, EventHandler? onClick) 52public ToolStripDropDownButton(string? text, Image? image, EventHandler? onClick, string? name) 58public ToolStripDropDownButton(string? text, Image? image, params ToolStripItem[]? dropDownItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
35protected ToolStripDropDownItem(string? text, Image? image, EventHandler? onClick) 40protected ToolStripDropDownItem(string? text, Image? image, EventHandler? onClick, string? name) 45protected ToolStripDropDownItem(string? text, Image? image, params ToolStripItem[]? dropDownItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
526protected internal override ToolStripItem CreateDefaultItem(string? text, Image? image, EventHandler? onClick)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
112if (Image.GetPixelFormatSize(image.PixelFormat) > 16) 392if (Image.GetPixelFormatSize(image.PixelFormat) > 16)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (15)
161protected ToolStripItem(string? text, Image? image, EventHandler? onClick) 166protected ToolStripItem(string? text, Image? image, EventHandler? onClick, string? name) 388public virtual Image? BackgroundImage 390get => Properties.GetValueOrDefault<Image>(s_backgroundImageProperty); 1026public virtual Image? Image 1030Image? image = Properties.GetValueOrDefault<Image>(s_imageProperty); 1561Image? image = Properties.GetValueOrDefault<Image>(s_imageProperty); 1710internal Image? MirroredImage 1716Image? image = Image; 1722Image mirroredImage = (Image)image.Clone(); 1730return Properties.GetValueOrDefault<Image>(s_mirroredImageProperty); 2040Image? image = Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (3)
83public ToolStripItem Add(Image? image) 88public ToolStripItem Add(string? text, Image? image) 93public ToolStripItem Add(string? text, Image? image, EventHandler? onClick)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (2)
24Image? image, 35public Image? Image { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (5)
39public ToolStripLabel(Image? image) 44public ToolStripLabel(string? text, Image? image) 49public ToolStripLabel(string? text, Image? image, bool isLink) 54public ToolStripLabel(string? text, Image? image, bool isLink, EventHandler? onClick) 59public ToolStripLabel(string? text, Image? image, bool isLink, EventHandler? onClick, string? name)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (10)
42private static Image? t_indeterminateCheckedImage; 45private static Image? t_checkedImage; 71public ToolStripMenuItem(Image? image) 77public ToolStripMenuItem(string? text, Image? image) 83public ToolStripMenuItem(string? text, Image? image, EventHandler? onClick) 89public ToolStripMenuItem(string? text, Image? image, EventHandler? onClick, string? name) 95public ToolStripMenuItem(string? text, Image? image, params ToolStripItem[]? dropDownItems) 101public ToolStripMenuItem(string? text, Image? image, EventHandler? onClick, Keys shortcutKeys) 270internal Image? CheckedImage => CheckState switch 674return Image.FromHbitmap(info.hbmpItem);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
125Image? image = _ownerItem.Image ?? _ownerItem.CheckedImage;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
743Image? image = e.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
52public override Image? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (6)
321public static Image CreateDisabledImage(Image normalImage) => 808Image? image = e.Image; 852Image? image = e.Image; 872Image invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, e.Item.BackColor); 1160private static Bitmap CreateDisabledImage(Image normalImage, ImageAttributes? imgAttrib)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
55private static Image DownImage => t_downScrollImage ??= ScaleHelper.GetIconResourceAsBestMatchBitmap( 62private static Image UpImage => t_upScrollImage ??= ScaleHelper.GetIconResourceAsBestMatchBitmap(
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (2)
33public override Image? BackgroundImage 123public override Image? Image
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (5)
45public ToolStripSplitButton(Image? image) 51public ToolStripSplitButton(string? text, Image? image) 57public ToolStripSplitButton(string? text, Image? image, EventHandler? onClick) 63public ToolStripSplitButton(string? text, Image? image, EventHandler? onClick, string? name) 69public ToolStripSplitButton(string? text, Image? image, params ToolStripItem[]? dropDownItems)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
71public override Image? Image
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (4)
34public ToolStripStatusLabel(Image? image) 39public ToolStripStatusLabel(string? text, Image? image) 44public ToolStripStatusLabel(string? text, Image? image, EventHandler? onClick) 49public ToolStripStatusLabel(string? text, Image? image, EventHandler? onClick, string? name)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (1)
625Image image = e.Item.Enabled
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
56public override Image? BackgroundImage
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
113public override Image? BackgroundImage
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
213public override Image? BackgroundImage 1769Image[] images = new Image[_stateImageList.Images.Count + 1]; 1980Image[] images = new Image[_stateImageList.Images.Count + 1];
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (1)
62public override Image BackgroundImage
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.cs (1)
41public override Drawing.Image BackgroundImage
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.cs (1)
61public override Image BackgroundImage
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
142public override Image? BackgroundImage
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1291public override Image? BackgroundImage
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
197public override Image? BackgroundImage
System\Windows\Forms\MDI\MDIClient.cs (3)
41public override Image? BackgroundImage 45Image? result = base.BackgroundImage; 62Image? backgroundImage = BackgroundImage;
System\Windows\Forms\OLE\Clipboard.cs (4)
380public static Image? GetImage() => GetTypedDataIfAvailable<Image>(DataFormats.Bitmap); 460/// Clears the Clipboard and then adds an <see cref="Image"/> in the <see cref="DataFormats.Bitmap"/> format. 462public static void SetImage(Image image) =>
System\Windows\Forms\OLE\DataObject.cs (4)
224public virtual Image? GetImage() => 225TryGetData<Image>(DataFormats.Bitmap, autoConvert: true, out Image? image) ? image : null; 249public virtual void SetImage(Image image) => SetData(DataFormatNames.Bitmap, true, image.OrThrowIfNull());
System\Windows\Forms\OLE\WinFormsOleServices.cs (5)
38if (format == DataFormatNames.Dib && data is Image) 66&& (typeof(Bitmap) == typeof(T) || typeof(Image) == typeof(T)) 109&& Image.FromHbitmap(medium.hGlobal) is Bitmap clipboardBitmap) 127typeof(T) == typeof(Image); 142DataFormatNames.Bitmap or DataFormatNames.BinaryFormatBitmap => type == typeof(Bitmap) || type == typeof(Image),
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
451public override Image? BackgroundImage
System\Windows\Forms\Rendering\ControlPaint.cs (6)
441Image backgroundImage, 1582Image image, 1600internal static bool IsImageTransparent(Image? backgroundImage) 1605internal static void DrawImageReplaceColor(Graphics g, Image image, Rectangle dest, Color oldColor, Color newColor) 1618public static void DrawImageDisabled(Graphics graphics, Image image, int x, int y, Color background) 1625internal static void DrawImageDisabled(Graphics graphics, Image image, Rectangle imageBounds, bool unscaledImage)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
83public override Image? BackgroundImage
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
299public void DrawImage(Graphics g, Rectangle bounds, Image image)
System.Windows.Forms.Design (49)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
20private Image? _swatch;
System\Drawing\Design\BitmapEditor.cs (1)
19protected override Image LoadFromStream(Stream stream) => new Bitmap(stream);
System\Drawing\Design\ImageEditor.cs (3)
160protected virtual Image LoadFromStream(Stream stream) 168return Image.FromStream(memoryStream); 174if (e?.Value is Image image)
System\Drawing\Design\MetafileEditor.cs (1)
18protected override Image LoadFromStream(Stream stream) => new Metafile(stream);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
262private Image? _image; 287public override Image? Image
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (3)
99private Image GlyphImageClosed => _glyphImageClosed ??= ScaleHelper.GetIconResourceAsBitmap( 104private Image GlyphImageOpened => _glyphImageOpened ??= ScaleHelper.GetIconResourceAsBitmap( 188Image image;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
63private readonly Image? _backgroundImage; // instead of calling .invalidate on the windows below us, 124Image? backgroundImage, 143Image? backgroundImage,
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
54private Image _dragImage; // A single image of the controls we are actually dragging around
System\Windows\Forms\Design\ComponentTray.cs (1)
1884private Image _toolboxBitmap; // the bitmap used to represent the component
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
731TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 816TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 823else if (typeof(Image).IsAssignableFrom(type) || imageTypeConverter.CanConvertFrom(type))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1200public Image? ToolboxBitmap { get; }
System\Windows\Forms\Design\DataGridViewDesigner.cs (4)
424TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 485TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 616TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(Image)); 637else if (typeof(Image).IsAssignableFrom(propType) || imageTypeConverter.CanConvertFrom(propType))
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
1924foreach (Image image in imageList.Images) 1943foreach (Image image in imageList.Images) 2248public Image CustomBindingImage 2520public ProjectGroupNode(DesignBindingPicker picker, string nodeName, Image image) : base(picker, nodeName, BindingImage.Project) 2543public ProjectDataSourceNode(DesignBindingPicker picker, object dataSource, string nodeName, Image image) : base(picker, dataSource, nodeName)
System\Windows\Forms\Design\DesignerUtils.cs (1)
114public static Image BoxImage
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
119if (value[i] is Image image)
System\Windows\Forms\Design\ImageIndexEditor.cs (3)
27ImageEditor = TypeDescriptorHelper.GetEditor<UITypeEditor>(typeof(Image)); 37protected virtual Image? GetImage(ITypeDescriptorContext context, int index, string? key, bool useIntIndex) 120Image? image = null;
System\Windows\Forms\Design\ImageListImage.cs (4)
16public ImageListImage(Image image) 21public ImageListImage(Image image, string? name) 35public Image Image { get; set; } 57return new ImageListImage((Bitmap)Image.FromStream(stream));
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (2)
17private Image? _image; 32public override Image? Image
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (2)
15private Image? _image; 74public override Image? Image
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
85Image image = null;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (2)
580Image image = null; 593PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(newItem)[nameof(Image)];
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
568Image image = null; 577PropertyDescriptor imageProperty = TypeDescriptor.GetProperties(item)[nameof(Image)];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
530Image image = null;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
794Image image = null;
System.Windows.Forms.Primitives (8)
System\Drawing\ImageExtensions.cs (8)
14/// Convert the given <paramref name="handle"/> to an <see cref="Image"/> of the given <paramref name="type"/>. 17public static Image? OleHandleToImage( 27return (Image)(Icon.FromHandle((HICON)handle).Clone()); 37return (Image)metafile.Clone(); 43return (Image)metafile.Clone(); 47return Image.FromHbitmap((HBITMAP)handle, (HPALETTE)paletteHandle); 59public static Image? ToImage(IPictureDisp* picture) 85public static Image? ToImage(IPicture* picture)
WindowsFormsIntegration (3)
System\Windows\Integration\Convert.cs (1)
135internal static SWMI.BitmapImage ToSystemWindowsMediaImagingBitmapImage(SD.Image fromImage)
System\Windows\Integration\HostUtils.cs (2)
284SD.Image newImage = null; 292using (newImage = SD.Image.FromStream(memoryStream))