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