2 types derived from Image
System.Drawing.Common (2)
Special\NotSupported.cs (2)
13
public sealed partial class Bitmap : System.Drawing.
Image
2533
public sealed partial class Metafile : System.Drawing.
Image
923 references to Image
Accessibility_Core_App (46)
DataControls.Designer.cs (9)
113
this.bindingNavigatorAddNewItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
130
this.bindingNavigatorDeleteItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
139
this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
148
this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
176
this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
185
this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.
Image
)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
198
this.toolStripButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripButton1.Image")));
212
this.toolStripSplitButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripSplitButton1.Image")));
220
this.toolStripDropDownButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripDropDownButton1.Image")));
Menu_Toolbars_controls.Designer.cs (17)
164
newToolStripMenuItem.Image = (
Image
)resources.GetObject("newToolStripMenuItem.Image");
173
openToolStripMenuItem.Image = (
Image
)resources.GetObject("openToolStripMenuItem.Image");
187
saveToolStripMenuItem.Image = (
Image
)resources.GetObject("saveToolStripMenuItem.Image");
207
printToolStripMenuItem.Image = (
Image
)resources.GetObject("printToolStripMenuItem.Image");
216
printPreviewToolStripMenuItem.Image = (
Image
)resources.GetObject("printPreviewToolStripMenuItem.Image");
262
cutToolStripMenuItem.Image = (
Image
)resources.GetObject("cutToolStripMenuItem.Image");
271
copyToolStripMenuItem.Image = (
Image
)resources.GetObject("copyToolStripMenuItem.Image");
280
pasteToolStripMenuItem.Image = (
Image
)resources.GetObject("pasteToolStripMenuItem.Image");
435
toolStripDropDownButton1.Image = (
Image
)resources.GetObject("toolStripDropDownButton1.Image");
461
toolStripSplitButton1.Image = (
Image
)resources.GetObject("toolStripSplitButton1.Image");
514
newToolStripButton.Image = (
Image
)resources.GetObject("newToolStripButton.Image");
528
toolStripButton1.Image = (
Image
)resources.GetObject("toolStripButton1.Image");
538
toolStripButton2.Image = (
Image
)resources.GetObject("toolStripButton2.Image");
550
toolStripButton3.Image = (
Image
)resources.GetObject("toolStripButton3.Image");
561
toolStripButton4.Image = (
Image
)resources.GetObject("toolStripButton4.Image");
573
toolStripButton5.Image = (
Image
)resources.GetObject("toolStripButton5.Image");
584
toolStripButton6.Image = (
Image
)resources.GetObject("toolStripButton6.Image");
ToolStripContainer.Designer.cs (20)
153
this.toolStripButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripButton1.Image")));
164
this.toolStripSplitButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripSplitButton1.Image")));
179
this.newToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("newToolStripButton.Image")));
188
this.openToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("openToolStripButton.Image")));
197
this.saveToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("saveToolStripButton.Image")));
206
this.printToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("printToolStripButton.Image")));
220
this.cutToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("cutToolStripButton.Image")));
229
this.copyToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("copyToolStripButton.Image")));
238
this.pasteToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("pasteToolStripButton.Image")));
252
this.helpToolStripButton.Image = ((System.Drawing.
Image
)(resources.GetObject("helpToolStripButton.Image")));
293
this.toolStripDropDownButton1.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripDropDownButton1.Image")));
308
this.toolStripSplitButton2.Image = ((System.Drawing.
Image
)(resources.GetObject("toolStripSplitButton2.Image")));
382
this.newToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("newToolStripMenuItem.Image")));
390
this.openToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("openToolStripMenuItem.Image")));
403
this.saveToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("saveToolStripMenuItem.Image")));
422
this.printToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("printToolStripMenuItem.Image")));
430
this.printPreviewToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("printPreviewToolStripMenuItem.Image")));
482
this.cutToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("cutToolStripMenuItem.Image")));
490
this.copyToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("copyToolStripMenuItem.Image")));
498
this.pasteToolStripMenuItem.Image = ((System.Drawing.
Image
)(resources.GetObject("pasteToolStripMenuItem.Image")));
DesignSurface (3)
MainForm.Designer.cs (3)
213
this.ToolStripMenuItemCut.Image = ((System.Drawing.
Image
)(resources.GetObject("ToolStripMenuItemCut.Image")));
223
this.ToolStripMenuItemCopy.Image = ((System.Drawing.
Image
)(resources.GetObject("ToolStripMenuItemCopy.Image")));
233
this.ToolStripMenuItemPaste.Image = ((System.Drawing.
Image
)(resources.GetObject("ToolStripMenuItemPaste.Image")));
Microsoft.VisualBasic.Forms (4)
Microsoft\VisualBasic\MyServices\ClipboardProxy.vb (4)
122
Public Function GetImage() As
Image
187
''' Saves the passed in <see cref="
Image
"/> to the clipboard.
189
''' <param name="image">The <see cref="
Image
"/> to be saved.</param>
190
Public Sub SetImage(image As
Image
)
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
34
return data is
Image
;
PresentationUI (5)
MS\Internal\Documents\Application\DocumentProperties.cs (2)
83
internal
Image
Image
419
private
Image
_image = null;
MS\Internal\Documents\SignatureResourceHelper.cs (3)
77
internal static Drawing.
Image
GetImageFromStatus(
98
return (Drawing.
Image
)Resources.ResourceManager.GetObject(resourceName);
353
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 (69)
Special\NotSupported.cs (69)
15
public Bitmap(System.Drawing.
Image
original) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
16
public Bitmap(System.Drawing.
Image
original, System.Drawing.Size newSize) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
17
public Bitmap(System.Drawing.
Image
original, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
489
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point point) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
490
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF point) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
491
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF[] destPoints) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
492
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
493
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
494
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
495
public void DrawImage(System.Drawing.
Image
image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback, int callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
496
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point[] destPoints) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
497
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
498
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
499
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
500
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback, int callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
501
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
502
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
503
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
504
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
505
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
506
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
507
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
508
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
509
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
510
public void DrawImage(System.Drawing.
Image
image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
511
public void DrawImage(System.Drawing.
Image
image, System.Drawing.RectangleF rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
512
public void DrawImage(System.Drawing.
Image
image, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
513
public void DrawImage(System.Drawing.
Image
image, int x, int y) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
514
public void DrawImage(System.Drawing.
Image
image, int x, int y, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
515
public void DrawImage(System.Drawing.
Image
image, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
516
public void DrawImage(System.Drawing.
Image
image, float x, float y) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
517
public void DrawImage(System.Drawing.
Image
image, float x, float y, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
518
public void DrawImage(System.Drawing.
Image
image, float x, float y, float width, float height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
519
public void DrawImageUnscaled(System.Drawing.
Image
image, System.Drawing.Point point) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
520
public void DrawImageUnscaled(System.Drawing.
Image
image, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
521
public void DrawImageUnscaled(System.Drawing.
Image
image, int x, int y) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
522
public void DrawImageUnscaled(System.Drawing.
Image
image, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
523
public void DrawImageUnscaledAndClipped(System.Drawing.
Image
image, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
625
public static System.Drawing.Graphics FromImage(System.Drawing.
Image
image) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
778
public static System.Drawing.
Image
FromFile(string filename) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
779
public static System.Drawing.
Image
FromFile(string filename, bool useEmbeddedColorManagement) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
782
public static System.Drawing.
Image
FromStream(System.IO.Stream stream) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
783
public static System.Drawing.
Image
FromStream(System.IO.Stream stream, bool useEmbeddedColorManagement) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
784
public static System.Drawing.
Image
FromStream(System.IO.Stream stream, bool useEmbeddedColorManagement, bool validateImageData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
790
public System.Drawing.
Image
GetThumbnailImage(int thumbWidth, int thumbHeight, System.Drawing.
Image
.GetThumbnailImageAbort? callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
801
public void SaveAdd(System.Drawing.
Image
image, System.Drawing.Imaging.EncoderParameters? encoderParams) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
812
public static void Animate(System.Drawing.
Image
image, System.EventHandler onFrameChangedHandler) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
813
public static bool CanAnimate([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] System.Drawing.
Image
? image) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
814
public static void StopAnimate(System.Drawing.
Image
image, System.EventHandler onFrameChangedHandler) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
816
public static void UpdateFrames(System.Drawing.
Image
? image) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1332
public TextureBrush(System.Drawing.
Image
bitmap) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1333
public TextureBrush(System.Drawing.
Image
image, System.Drawing.Drawing2D.WrapMode wrapMode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1334
public TextureBrush(System.Drawing.
Image
image, System.Drawing.Drawing2D.WrapMode wrapMode, System.Drawing.Rectangle dstRect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1335
public TextureBrush(System.Drawing.
Image
image, System.Drawing.Drawing2D.WrapMode wrapMode, System.Drawing.RectangleF dstRect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1336
public TextureBrush(System.Drawing.
Image
image, System.Drawing.Rectangle dstRect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1337
public TextureBrush(System.Drawing.
Image
image, System.Drawing.Rectangle dstRect, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1338
public TextureBrush(System.Drawing.
Image
image, System.Drawing.RectangleF dstRect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1339
public TextureBrush(System.Drawing.
Image
image, System.Drawing.RectangleF dstRect, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1340
public System.Drawing.
Image
Image { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
1364
public System.Drawing.
Image
? GetImage(object? component) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1365
public System.Drawing.
Image
? GetImage(object? component, bool large) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1366
public System.Drawing.
Image
? GetImage(System.Type type) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1367
public System.Drawing.
Image
? GetImage(System.Type type, bool large) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1368
public System.Drawing.
Image
? GetImage(System.Type type, string? imgName, bool large) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
1369
public static System.Drawing.
Image
? GetImageFromResource(System.Type t, string? imageName, bool large) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2926
public PreviewPageInfo(System.Drawing.
Image
image, System.Drawing.Size physicalSize) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
2927
public System.Drawing.
Image
Image { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3042
public bool IsDirectPrintingSupported(System.Drawing.
Image
image) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (99)
mono\System.Drawing.Imaging\IconCodecTests.cs (4)
42
using
Image
image =
Image
.FromFile(sInFile);
59
using
Image
image =
Image
.FromFile(sInFile);
mono\System.Drawing\BitmapTests.cs (9)
151
bool alpha =
Image
.IsAlphaPixelFormat(format);
152
int size =
Image
.GetPixelFormatSize(format) / 8 * 2;
508
int bbps =
Image
.GetPixelFormatSize(fmt);
1275
using
Image
image =
Image
.FromHbitmap(hbitmap);
1301
using (
Image
image =
Image
.FromHbitmap(hbitmap))
1311
using
Image
image2 =
Image
.FromHbitmap(hbitmap);
mono\System.Drawing\GraphicsTests.cs (2)
346
using
Image
img =
Image
.FromFile(sInFile);
System\Drawing\BitmapTests.cs (17)
314
Assert.Throws<NullReferenceException>(() => new Bitmap((
Image
)null));
319
public void Ctor_Image_Width_Height(
Image
image, int width, int height)
330
public void Ctor_Size(
Image
image, int width, int height)
384
if (
Image
.IsAlphaPixelFormat(targetFormat))
603
using Bitmap result =
Image
.FromHbitmap(handle);
615
using (Bitmap result =
Image
.FromHbitmap(handle))
624
using (Bitmap result =
Image
.FromHbitmap(handle))
655
Assert.Throws<ExternalException>(() =>
Image
.FromHbitmap(IntPtr.Zero));
656
Assert.Throws<ExternalException>(() =>
Image
.FromHbitmap(10));
741
using
Image
bitmapFromWmf =
Image
.FromStream(wmfStream);
745
using
Image
expectedPngBitmap =
Image
.FromStream(expectedPngStream);
748
using
Image
outputPngBitmap =
Image
.FromStream(outputPngStream);
1285
bool alpha =
Image
.IsAlphaPixelFormat(format);
1286
int size =
Image
.GetPixelFormatSize(format) / 8 * 2;
System\Drawing\IconConverterTests.cs (4)
73
Assert.True(_icoConv.CanConvertTo(typeof(
Image
)), "Image (no context)");
74
Assert.True(_icoConv.CanConvertTo(null, typeof(
Image
)), "Image");
91
Assert.True(_icoConvFrmTD.CanConvertTo(typeof(
Image
)), "TD Image (no context)");
92
Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(
Image
)), "TD Image");
System\Drawing\ImageConverterTests.cs (6)
11
private readonly
Image
_image;
19
_image =
Image
.FromFile(Path.Combine("bitmaps", "TestImage.bmp"));
125
Image
newImage = (
Image
)_imgConv.ConvertFrom(null, CultureInfo.InvariantCulture, _imageBytes);
130
newImage = (
Image
)_imgConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, _imageBytes);
242
propsColl = TypeDescriptor.GetProperties(typeof(
Image
));
System\Drawing\ImageTests.cs (20)
496
Assert.Throws<OutOfMemoryException>(() =>
Image
.FromFile(file.Path));
497
Assert.Throws<OutOfMemoryException>(() =>
Image
.FromFile(file.Path, useEmbeddedColorManagement: true));
503
AssertExtensions.Throws<ArgumentNullException>("path", () =>
Image
.FromFile(null));
504
AssertExtensions.Throws<ArgumentNullException>("path", () =>
Image
.FromFile(null, useEmbeddedColorManagement: true));
510
AssertExtensions.Throws<ArgumentException>("path", null, () =>
Image
.FromFile(string.Empty));
511
AssertExtensions.Throws<ArgumentException>("path", null, () =>
Image
.FromFile(string.Empty, useEmbeddedColorManagement: true));
522
Assert.Throws<PathTooLongException>(() =>
Image
.FromFile(fileName));
523
Assert.Throws<PathTooLongException>(() =>
Image
.FromFile(fileName,
530
Assert.Throws<FileNotFoundException>(() =>
Image
.FromFile(fileName));
531
Assert.Throws<FileNotFoundException>(() =>
Image
.FromFile(fileName,
539
Assert.Throws<FileNotFoundException>(() =>
Image
.FromFile("NoSuchFile"));
540
Assert.Throws<FileNotFoundException>(() =>
Image
.FromFile("NoSuchFile", useEmbeddedColorManagement: true));
551
AssertExtensions.Throws<ArgumentException>(null, () =>
Image
.FromStream(stream));
554
AssertExtensions.Throws<ArgumentException>(null, () =>
Image
.FromStream(stream, useEmbeddedColorManagement: true));
555
AssertExtensions.Throws<ArgumentException>(null, () =>
Image
.FromStream(stream, useEmbeddedColorManagement: true, validateImageData: true));
562
AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () =>
Image
.FromStream(null));
563
AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () =>
Image
.FromStream(null, useEmbeddedColorManagement: true));
564
AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () =>
Image
.FromStream(null, useEmbeddedColorManagement: true, validateImageData: true));
584
Assert.Equal(expectedSize,
Image
.GetPixelFormatSize(format));
604
Assert.Equal(expected,
Image
.IsAlphaPixelFormat(format));
System\Drawing\Imaging\ImageFormatTests.cs (2)
110
var
img =
Image
.FromFile(path);
System\Drawing\Imaging\PropertyItemTests.cs (2)
75
using
Image
clone = (
Image
)image.Clone();
System\Drawing\TextureBrushTests.cs (22)
19
public void Ctor_Bitmap(
Image
bitmap, PixelFormat expectedPixelFormat, Size expectedSize)
50
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.Clamp, data[1], data[2] };
51
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.Tile, data[1], data[2] };
52
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipX, data[1], data[2] };
53
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipXY, data[1], data[2] };
54
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipY, data[1], data[2] };
60
public void Ctor_Image_WrapMode(
Image
image, WrapMode wrapMode, PixelFormat expectedPixelFormat, Size expectedSize)
87
public void Ctor_Image_Rectangle(
Image
image, Rectangle rectangle)
108
public void Ctor_Image_RectangleF(
Image
image, Rectangle rectangle)
131
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.Clamp, data[1] };
132
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.Tile, data[1] };
133
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipX, data[1] };
134
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipXY, data[1] };
135
yield return new object[] { ((
Image
)data[0]).Clone(), WrapMode.TileFlipY, data[1] };
141
public void Ctor_Image_WrapMode_Rectangle(
Image
image, WrapMode wrapMode, Rectangle rectangle)
162
public void Ctor_Image_WrapMode_RectangleF(
Image
image, WrapMode wrapMode, Rectangle rectangle)
185
yield return new object[] { ((
Image
)data[0]).Clone(), data[1], null, WrapMode.Tile };
186
yield return new object[] { ((
Image
)data[0]).Clone(), data[1], new ImageAttributes(), WrapMode.Clamp };
190
yield return new object[] { ((
Image
)data[0]).Clone(), data[1], customWrapMode, WrapMode.TileFlipXY };
196
public void Ctor_Image_Rectangle_ImageAttributes(
Image
image, Rectangle rectangle, ImageAttributes attributes, WrapMode expectedWrapMode)
218
public void Ctor_Image_RectangleF_ImageAttributes(
Image
image, Rectangle rectangle, ImageAttributes attributes, WrapMode expectedWrapMode)
241
AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((
Image
)null));
System\Drawing\ToolboxBitmapAttributeTests.cs (11)
18
private static void AssertDefaultSize(
Image
image)
37
using
Image
image = attribute.GetImage(null);
56
using
Image
image = attribute.GetImage(type);
83
using
Image
image = attribute.GetImage(type, fileName, false);
100
using (
Image
image = attribute.GetImage(typeof(ToolboxBitmapAttributeTests), fileName, large: true))
105
using (
Image
image = attribute.GetImage(typeof(ToolboxBitmapAttributeTests), fileName, large: false))
124
using
Image
smallImage = attribute.GetImage(new bitmap_173x183_indexed_8bit(), large: false);
127
using
Image
largeImage = attribute.GetImage(new bitmap_173x183_indexed_8bit(), large: true);
136
using (
Image
image = attribute.GetImage(typeof(ToolboxBitmapAttributeTests), "bitmap_173x183_indexed_8bit", large: true))
141
using (
Image
image = attribute.GetImage(typeof(ToolboxBitmapAttributeTests), "bitmap_173x183_indexed_8bit", large: false))
152
using
Image
image = attribute.GetImage(type);
System.Windows.Forms (237)
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, {AssemblyRef.SystemDrawingDesign}",
System\Windows\Forms\ActiveX\AxHost.cs (5)
263
public override
Image
? BackgroundImage
3529
protected static object? GetIPictureFromPicture(
Image
? image)
3543
protected static object? GetIPictureDispFromPicture(
Image
? image)
3550
protected static
Image
? GetPictureFromIPicture(object? picture)
3574
protected static unsafe
Image
? GetPictureFromIPictureDisp(object? picture)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
70
_lastManaged =
Image
.FromHbitmap(extendedHandle);
System\Windows\Forms\Control.cs (2)
838
public virtual
Image
? BackgroundImage
840
get => Properties.GetValueOrDefault<
Image
>(s_backgroundImageProperty);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (3)
27
private
Image
? _image;
372
public
Image
? Image
525
/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="Drawing.
Image
"/>
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
374
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)
264
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1038
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)
172
public override
Image
? BackgroundImage
368
public
Image
? Image
372
Image
? image = Properties.GetValueOrDefault<
Image
>(s_propImage);
856
if (animate == currentlyAnimating || !Properties.TryGetValue(s_propImage, out
Image
? image))
873
protected Rectangle CalcImageRenderBounds(
Image
image, Rectangle r, ContentAlignment align)
966
private void DrawImage(PaintEventArgs e,
Image
image, Rectangle r, ContentAlignment align)
980
/// Draws an <see cref="Drawing.
Image
"/> within the specified bounds.
982
protected void DrawImage(Graphics g,
Image
image, Rectangle r, ContentAlignment align)
985
private void DrawImageInternal(Graphics g,
Image
image, Rectangle r, ContentAlignment align)
1255
Image
? i = Image;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
171
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)
213
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (17)
40
private
Image
? _image;
56
private
Image
? _initialImage;
57
private
Image
? _errorImage;
70
private
Image
? _defaultInitialImage;
71
private
Image
? _defaultErrorImage;
74
private static
Image
? t_defaultInitialImageForThread;
77
private static
Image
? t_defaultErrorImageForThread;
229
public
Image
? ErrorImage
302
public
Image
? Image
388
public
Image
? InitialImage
420
private void InstallNewImage(
Image
? value, ImageInstallationType installationType)
478
Image
img =
Image
.FromStream(_localImageStreamReader.BaseStream);
487
Image
img =
Image
.FromStream(_uriImageStream);
616
Image
? img = ErrorImage;
623
img =
Image
.FromStream(_tempDownloadStream!);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
102
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
326
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
87
internal override void DrawImageCore(Graphics graphics,
Image
image, Rectangle imageBounds, Point imageStart, LayoutData layout)
93
using
Image
invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, Control.BackColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1722
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)
126
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
194
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)
304
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
247
protected internal override ToolStripItem CreateDefaultItem(string? text,
Image
? image, EventHandler? onClick)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
945
/// Gets or sets the <see cref="Forms.ImageList"/> that contains the <see cref="
Image
"/> displayed on a label control.
1778
protected internal virtual ToolStripItem CreateDefaultItem(string? text,
Image
? image, EventHandler? onClick) =>
2587
/// 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)
512
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);
1021
public virtual
Image
? Image
1025
Image
? image = Properties.GetValueOrDefault<
Image
>(s_imageProperty);
1556
Image
? image = Properties.GetValueOrDefault<
Image
>(s_imageProperty);
1713
internal
Image
? MirroredImage
1719
Image
? image = Image;
1725
Image
mirroredImage = (
Image
)image.Clone();
1733
return Properties.GetValueOrDefault<
Image
>(s_mirroredImageProperty);
2043
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)
744
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)
314
public static
Image
CreateDisabledImage(
Image
normalImage)
779
Image
? image = e.Image;
822
Image
? image = e.Image;
839
Image
invertedImage = ControlPaint.CreateBitmapWithInvertedForeColor(bitmap, e.Item.BackColor);
1026
private static Bitmap CreateDisabledImage(
Image
normalImage, ImageAttributes? imgAttrib)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (2)
50
private static
Image
DownImage => t_downScrollImage ??= ScaleHelper.GetIconResourceAsBestMatchBitmap(
57
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\ToolStripTextBox.cs (1)
56
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
117
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
216
public override
Image
? BackgroundImage
1771
Image
[] images = new
Image
[_stateImageList.Images.Count + 1];
1983
Image
[] images = new
Image
[_stateImageList.Images.Count + 1];
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
146
public override
Image
? BackgroundImage
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1297
public override
Image
? BackgroundImage
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
197
public override
Image
? BackgroundImage
System\Windows\Forms\MDI\MDIClient.cs (3)
47
public override
Image
? BackgroundImage
51
Image
? result = base.BackgroundImage;
68
Image
? backgroundImage = BackgroundImage;
System\Windows\Forms\OLE\Clipboard.cs (4)
253
public static
Image
? GetImage() => GetData(DataFormats.Bitmap, autoConvert: true) as
Image
;
322
/// Clears the Clipboard and then adds an <see cref="
Image
"/> in the <see cref="DataFormats.Bitmap"/> format.
324
public static void SetImage(
Image
image) =>
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (5)
347
private static
Image
? TryGetBitmapData(Com.IDataObject* dataObject, string format)
374
Image
? data = null;
382
&&
Image
.FromHbitmap(medium.hGlobal) is
Image
clipboardImage)
384
data = (
Image
)clipboardImage.Clone();
System\Windows\Forms\OLE\DataObject.Composition.WinFormsToNativeAdapter.cs (1)
312
DataFormats.DibConstant when data is
Image
System\Windows\Forms\OLE\DataObject.cs (3)
151
public virtual
Image
? GetImage() => GetData(DataFormats.Bitmap, autoConvert: true) as
Image
;
174
public virtual void SetImage(
Image
image) => SetData(DataFormats.BitmapConstant, true, image.OrThrowIfNull());
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
451
public override
Image
? BackgroundImage
System\Windows\Forms\Rendering\ControlPaint.cs (6)
416
Image
backgroundImage,
1557
Image
image,
1575
internal static bool IsImageTransparent(
Image
? backgroundImage)
1580
internal static void DrawImageReplaceColor(Graphics g,
Image
image, Rectangle dest, Color oldColor, Color newColor)
1593
public static void DrawImageDisabled(Graphics graphics,
Image
image, int x, int y, Color background)
1600
internal static void DrawImageDisabled(Graphics graphics,
Image
image, Rectangle imageBounds, bool unscaledImage)
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
92
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 (46)
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)
1899
private
Image
_toolboxBitmap; // the bitmap used to represent the component
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
733
TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(
Image
));
823
TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(
Image
));
830
else if (typeof(
Image
).IsAssignableFrom(type) || imageTypeConverter.CanConvertFrom(type))
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1208
public
Image
? ToolboxBitmap { get; }
System\Windows\Forms\Design\DataGridViewDesigner.cs (4)
434
TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(
Image
));
495
TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(
Image
));
626
TypeConverter imageTypeConverter = TypeDescriptor.GetConverter(typeof(
Image
));
647
else if (typeof(
Image
).IsAssignableFrom(propType) || imageTypeConverter.CanConvertFrom(propType))
System\Windows\Forms\Design\DesignBindingPicker.cs (5)
1928
foreach (
Image
image in imageList.Images)
1947
foreach (
Image
image in imageList.Images)
2252
public
Image
CustomBindingImage
2524
public ProjectGroupNode(DesignBindingPicker picker, string nodeName,
Image
image) : base(picker, nodeName, BindingImage.Project)
2547
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\ToolStripDesigner.cs (1)
607
Image
image = null;
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (1)
530
Image
image = null;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
815
Image
image = null;
System.Windows.Forms.Design.Tests (7)
EnsureEditorsTests.cs (1)
52
[InlineData(typeof(
Image
), typeof(ImageEditor))]
System\Drawing\Design\BitmapEditorTests.cs (1)
111
public new
Image
LoadFromStream(Stream stream) => base.LoadFromStream(stream);
System\Drawing\Design\ImageEditorTests.cs (1)
216
public new
Image
LoadFromStream(Stream stream) => base.LoadFromStream(stream);
System\Drawing\Design\MetafileEditorTests.cs (1)
85
public new
Image
LoadFromStream(Stream stream) => base.LoadFromStream(stream);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (2)
317
using Bitmap expected = (Bitmap)
Image
.FromFile(@"Resources\Image1.png");
373
using Bitmap expected = (Bitmap)
Image
.FromFile(@"Resources\Image1.png");
System\Windows\Forms\Design\ImageListDesignerOriginalImageCollectionTests.cs (1)
16
private readonly
Image
_image = new Bitmap(10, 10);
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)
System.Windows.Forms.Primitives.Tests (2)
Interop\Ole32\IPictureTests.cs (2)
75
using
Image
? image = ImageExtensions.ToImage(picture);
86
using
Image
? image = ImageExtensions.ToImage(picture);
System.Windows.Forms.Tests (371)
System\Drawing\Design\PropertyValueUIItemTests.cs (1)
20
public void PropertyValueUIItem_Ctor_Image_PropertyValueUIItemInvokeHandler_String(
Image
uiItemImage, PropertyValueUIItemInvokeHandler handler, string tooltip)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (1)
188
using
Image
image = new Bitmap(1, 1);
System\Windows\Forms\AxHostTests.cs (5)
305
public void AxHost_BackgroundImage_Set_GetReturnsExpected(
Image
value)
3234
public static new object GetIPictureDispFromPicture(
Image
image) => AxHost.GetIPictureDispFromPicture(image);
3236
public static new object GetIPictureFromPicture(
Image
image) => AxHost.GetIPictureFromPicture(image);
3238
public static new
Image
GetPictureFromIPicture(object picture) => AxHost.GetPictureFromIPicture(picture);
3240
public static new
Image
GetPictureFromIPictureDisp(object picture) => AxHost.GetPictureFromIPictureDisp(picture);
System\Windows\Forms\ButtonBaseTests.cs (53)
815
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
825
public void ButtonBase_Enabled_Set_GetReturnsExpected(bool visible,
Image
image, bool value)
849
public void ButtonBase_Enabled_SetDesignMode_GetReturnsExpected(bool visible,
Image
image, bool value)
889
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
899
public void ButtonBase_Enabled_SetWithHandle_GetReturnsExpected(bool visible,
Image
image, bool value, int expectedInvalidatedCallCount1, int expectedInvalidatedCallCount2)
940
public void ButtonBase_Enabled_SetDesignModeWithHandle_GetReturnsExpected(bool visible,
Image
image, bool value, int expectedInvalidatedCallCount1, int expectedInvalidatedCallCount2)
1393
public void ButtonBase_Image_Set_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value)
1493
public void ButtonBase_Image_SetDesignMode_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value)
1546
public void ButtonBase_Image_SetWithParent_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value, int expectedParentLayoutCallCount)
1609
public void ButtonBase_Image_SetWithHandle_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value, int expectedInvalidatedCallCount)
1647
public void ButtonBase_Image_SetDesignModeWithHandle_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value, int expectedInvalidatedCallCount)
1713
public void ButtonBase_Image_SetWithParentWithHandle_GetReturnsExpected(bool autoSize, bool enabled, bool visible,
Image
value, int expectedParentLayoutCallCount, int expectedInvalidatedCallCount)
2798
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
2809
public void ButtonBase_Parent_Set_GetReturnsExpected(bool enabled, bool visible,
Image
image, Control value)
2829
public void ButtonBase_Parent_SetDesignMode_GetReturnsExpected(bool enabled, bool visible,
Image
image, Control value)
2863
public void ButtonBase_Parent_SetWithNonNullOldParent_GetReturnsExpected(bool enabled, bool visible,
Image
image, Control value)
2907
public void ButtonBase_Parent_SetWithHandle_GetReturnsExpected(bool enabled, bool visible,
Image
image, Control value)
2941
public void ButtonBase_Parent_SetDesignModeWithHandle_GetReturnsExpected(bool enabled, bool visible,
Image
image, Control value)
4342
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
4352
public void ButtonBase_Visible_Set_GetReturnsExpected(bool enabled,
Image
image, bool value)
4376
public void ButtonBase_Visible_SetDesignMode_GetReturnsExpected(bool enabled,
Image
image, bool value)
4416
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
4426
public void ButtonBase_Visible_SetWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value)
4467
public void ButtonBase_Visible_SetDesignModeWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value)
5103
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
5114
public void ButtonBase_OnEnabledChanged_Invoke_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
5145
public void ButtonBase_OnEnabledChanged_InvokeDesignMode_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
5194
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
5205
public void ButtonBase_OnEnabledChanged_InvokeWithHandle_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs, int expectedInvalidatedCallCount)
5249
public void ButtonBase_OnEnabledChanged_InvokeDesignModeWithHandle_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs, int expectedInvalidatedCallCount)
6932
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
6943
public void ButtonBase_OnParentChanged_Invoke_CallsParentChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
6974
public void ButtonBase_OnParentChanged_InvokeDesignMode_CallsParentChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7023
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
7034
public void ButtonBase_OnParentChanged_InvokeWithHandle_CallsParentChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7078
public void ButtonBase_OnParentChanged_InvokeDesignModeWithHandle_CallsParentChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7362
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
7373
public void ButtonBase_OnVisibleChanged_Invoke_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7404
public void ButtonBase_OnVisibleChanged_InvokeDesignMode_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7453
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
7464
public void ButtonBase_OnVisibleChanged_InvokeWithHandle_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
7508
public void ButtonBase_OnVisibleChanged_InvokeDesignModeWithHandle_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
System\Windows\Forms\ClipboardTests.cs (1)
128
Image
? result = Clipboard.GetImage();
System\Windows\Forms\ComboBoxTests.cs (1)
499
public void ComboBox_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\ControlPaintTests.cs (1)
1327
public void ControlPaint_DrawImageDisabled_Invoke_Success(
Image
image, int x, int y, Color background)
System\Windows\Forms\ControlTests.Handlers.cs (12)
3836
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) })
3852
public void Control_OnPaintBackground_Invoke_Success(bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
3899
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
3943
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
3974
public void Control_OnPaintBackground_InvokeWithParent_CallsPaint(Control parent, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
4024
public void Control_OnPaintBackground_InvokeWithHandle_Success(bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
4071
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
4101
public void Control_OnPaintBackground_InvokeWithParentWithHandle_CallsPaint(bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
System\Windows\Forms\ControlTests.Properties.cs (5)
1635
public void Control_BackgroundImage_Set_GetReturnsExpected(
Image
value)
1658
public void Control_BackgroundImage_SetWithHandle_GetReturnsExpected(
Image
value, int expectedInvalidatedCallCount)
1687
public void Control_BackgroundImage_SetWithChildren_GetReturnsExpected(
Image
value)
1709
public void Control_BackgroundImage_SetWithChildrenWithBackgroundImage_GetReturnsExpected(
Image
value)
2054
public void Control_BackgroundImageLayout_SetWithBackgroundImage_GetReturnsExpected(
Image
backgroundImage, ImageLayout value, bool expectedDoubleBuffered)
System\Windows\Forms\DataObjectTests.cs (4)
663
public static TheoryData<object,
Image
> GetImage_TheoryData()
665
TheoryData<object,
Image
> theoryData = [];
677
public void DataObject_GetImage_InvokeWithData_ReturnsExpected(object result,
Image
expected)
686
public void DataObject_GetImage_InvokeMocked_ReturnsExpected(object result,
Image
expected)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (21)
257
public void ImageCollection_Item_Set_GetReturnsExpected(Color transparentColor,
Image
value)
278
public void ImageCollection_Item_SetWithHandle_GetReturnsExpected(Color transparentColor,
Image
value)
437
public void ImageCollection_Add_InvokeStringImage_Success(Color transparentColor,
Image
value)
481
public void ImageCollection_Add_InvokeStringImageWithHandle_Success(Color transparentColor,
Image
value)
526
public void ImageCollection_Add_InvokeImage_Success(Color transparentColor,
Image
value)
550
public void ImageCollection_Add_InvokeImageWithHandle_Success(Color transparentColor,
Image
value)
595
public void ImageCollection_Add_InvokeImageColor_Success(Color listTransparentColor,
Image
value, Color transparentColor)
619
public void ImageCollection_Add_InvokeImageColorWithHandle_Success(Color listTransparentColor,
Image
value, Color transparentColor)
793
Assert.Throws<ArgumentNullException>("value", () => collection.Add((
Image
)null));
795
Assert.Throws<InvalidOperationException>(() => collection.Add("Key", (
Image
)null));
814
public void ImageCollection_AddRange_Invoke_Success(Color transparentColor,
Image
value)
829
collection.AddRange(Array.Empty<
Image
>());
838
public void ImageCollection_AddRange_InvokeWithHandle_Success(Color transparentColor,
Image
value)
854
collection.AddRange(Array.Empty<
Image
>());
903
public void ImageCollection_AddStrip_Invoke_Success(Color transparentColor,
Image
value, int expectedCount)
920
public void ImageCollection_AddStrip_InvokeWithHandle_Success(Color transparentColor,
Image
value, int expectedCount)
1063
public void ImageCollection_Contains_ThrowsNotSupportedException(
Image
image)
1277
public void ImageCollection_IndexOf_ThrowsNotSupportedException(
Image
image)
1293
public void ImageCollection_Remove_Invoke_ThrowsNotSupportedException(
Image
image)
1630
public void ImageCollection_IListItem_Set_GetReturnsExpected(Color transparentColor,
Image
value)
1651
public void ImageCollection_IListItem_SetWithHandle_GetReturnsExpected(Color transparentColor,
Image
value)
System\Windows\Forms\ImageListTests.cs (2)
473
Assert.Equal(new Size(32, 32), ((
Image
)Assert.Single(list.Images)).Size);
482
Assert.Equal(new Size(32, 32), ((
Image
)Assert.Single(list.Images)).Size);
System\Windows\Forms\ListBoxTests.cs (1)
474
public void ListBox_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\MdiClientTests.cs (2)
176
public void MdiClient_BackgroundImage_GetWithParent_GetReturnsExpected(
Image
parentBackgroundImage)
196
public void MdiClient_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\MdiControlStripTests.cs (1)
430
public new ToolStripItem CreateDefaultItem(string text,
Image
image, EventHandler onClick) => base.CreateDefaultItem(text, image, onClick);
System\Windows\Forms\MenuStripTests.cs (3)
447
public void MenuStrip_CreateDefaultItem_InvokeButton_Success(string text,
Image
image, EventHandler onClick)
465
public void MenuStrip_CreateDefaultItem_InvokeSeparator_Success(
Image
image, EventHandler onClick)
926
public new ToolStripItem CreateDefaultItem(string text,
Image
image, EventHandler onClick) => base.CreateDefaultItem(text, image, onClick);
System\Windows\Forms\MonthCalendarTests.cs (1)
374
public void MonthCalendar_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\PictureBoxTests.cs (16)
312
public void PictureBox_ErrorImage_Set_GetReturnsExpected(
Image
value)
329
public void PictureBox_ErrorImage_SetWithNonNullOldValue_GetReturnsExpected(
Image
value)
348
public void PictureBox_ErrorImage_SetWithHandle_GetReturnsExpected(
Image
value)
365
public void PictureBox_ErrorImage_SetWithNonNullOldValueWithHandle_GetReturnsExpected(
Image
value)
530
public void PictureBox_Image_Set_GetReturnsExpected(
Image
value)
545
public void PictureBox_Image_SetWithNonNullOldValue_GetReturnsExpected(
Image
value)
562
public void PictureBox_Image_SetWithHandle_GetReturnsExpected(
Image
value)
577
public void PictureBox_Image_SetWithNonNullOldValueWithHandle_GetReturnsExpected(
Image
value)
816
public void PictureBox_ImageLocation_SetInvalidWithWaitOnLoadTrueDesignMode_GetReturnsExpected(
Image
initialImage,
Image
errorImage, string value)
1009
public void PictureBox_InitialImage_Set_GetReturnsExpected(
Image
value)
1026
public void PictureBox_InitialImage_SetWithNonNullOldValue_GetReturnsExpected(
Image
value)
1045
public void PictureBox_InitialImage_SetWithHandle_GetReturnsExpected(
Image
value)
1062
public void PictureBox_InitialImage_SetWithNonNullOldValueWithHandle_GetReturnsExpected(
Image
value)
2031
public void PictureBox_Load_UrlInvalidWithWaitOnLoadTrueDesignMode_GetReturnsExpected(
Image
initialImage,
Image
errorImage, string value)
System\Windows\Forms\ProgressBarTests.cs (1)
217
public void ProgressBar_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\PropertyGridTests.cs (1)
409
public void PropertyGrid_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\RichTextBoxTests.cs (1)
739
public void RichTextBox_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\ScrollableControlTests.cs (12)
1510
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) })
1528
public void ScrollableControl_OnPaintBackground_Invoke_Success(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
1582
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
1626
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
1675
public void ScrollableControl_OnPaintBackground_InvokeWithParent_CallsPaint(Control parent, bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
1727
public void ScrollableControl_OnPaintBackground_InvokeWithHandle_Success(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
1782
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
1815
public void ScrollableControl_OnPaintBackground_InvokeWithParentWithHandle_CallsPaint(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
System\Windows\Forms\ScrollBarTests.cs (1)
246
public void ScrollBar_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\SplitterTests.cs (1)
200
public void Splitter_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\StatusStripTests.cs (2)
882
public void StatusStrip_CreateDefaultItem_Invoke_Success(string text,
Image
image, EventHandler onClick)
1348
public new ToolStripItem CreateDefaultItem(string text,
Image
image, EventHandler onClick) => base.CreateDefaultItem(text, image, onClick);
System\Windows\Forms\TabControlTests.cs (1)
617
public void TabControl_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System\Windows\Forms\TabPageTests.cs (10)
3958
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) })
3974
public void TabPage_OnPaintBackground_Invoke_Success(bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
4012
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
4044
public void TabPage_OnPaintBackground_InvokeWithParent_CallsPaint(TabAppearance appearance, bool useVisualStyleBackColor, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
4100
public void TabPage_OnPaintBackground_InvokeWithHandle_Success(bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
4151
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
4183
public void TabPage_OnPaintBackground_InvokeWithParentWithHandle_CallsPaint(TabAppearance appearance, bool useVisualStyleBackColor, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
System\Windows\Forms\ToolStripButtonTests.cs (8)
183
public void ToolStripButton_Ctor_Image(
Image
image)
273
public void ToolStripButton_Ctor_String_Image(string text,
Image
image)
363
public void ToolStripButton_Ctor_String_Image_EventHandler(string text,
Image
image, EventHandler onClick)
461
public void ToolStripButton_Ctor_String_Image_EventHandler_String(string text,
Image
image, EventHandler onClick, string name, string expectedName)
1704
public SubToolStripButton(
Image
image) : base(image)
1708
public SubToolStripButton(string text,
Image
image) : base(text, image)
1712
public SubToolStripButton(string text,
Image
image, EventHandler onClick) : base(text, image, onClick)
1716
public SubToolStripButton(string text,
Image
image, EventHandler onClick, string name) : base(text, image, onClick, name)
System\Windows\Forms\ToolStripControlHostTests.cs (28)
400
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
401
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
406
public void ToolStripControlHost_BackgroundImage_Set_GetReturnsExpected(
Image
value)
852
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
862
public void ToolStripControlHost_Enabled_Set_GetReturnsExpected(bool visible,
Image
image, bool value)
1211
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
1212
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
1218
public void ToolStripControlHost_Image_Set_GetReturnsExpected(Color imageTransparentColor,
Image
value)
1337
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), color };
1338
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), color };
1344
public void ToolStripControlHost_ImageTransparentColor_Set_GetReturnsExpected(
Image
image, Color value)
1368
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
1382
public void ToolStripControlHost_Parent_Set_GetReturnsExpected(bool enabled, bool visible,
Image
image, bool allowDrop)
1449
public void ToolStripControlHost_Parent_SetWithOwner_GetReturnsExpected(bool enabled, bool visible,
Image
image, bool allowDrop)
2394
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
2404
public void ToolStripControlHost_Visible_Set_GetReturnsExpected(bool enabled,
Image
image, bool value)
3039
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
3055
public void ToolStripControlHost_OnParentChanged_Invoke_Success(bool enabled, bool visible,
Image
image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent)
3073
public void ToolStripControlHost_OnParentChanged_InvokeWithOwner_Success(bool enabled, bool visible,
Image
image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent)
3095
public void ToolStripControlHost_OnParentChanged_InvokeControlWithoutParent_Success(bool enabled, bool visible,
Image
image, bool allowDrop)
3164
public void ToolStripControlHost_OnParentChanged_InvokeControlWithParent_Success(bool enabled, bool visible,
Image
image, bool allowDrop)
3242
public void ToolStripControlHost_OnParentChanged_InvokeDisposed_Success(bool enabled, bool visible,
Image
image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent)
3262
public void ToolStripControlHost_OnParentChanged_InvokeDisposedWithOwner_Success(bool enabled, bool visible,
Image
image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent)
4453
public void ToolStripControlHost_SetVisibleCore_Invoke_GetReturnsExpected(bool enabled,
Image
image, bool value)
System\Windows\Forms\ToolStripDropDownItemTests.cs (6)
105
public void ToolStripDropDownItem_Ctor_String_Image_EventHandler(string text,
Image
image, EventHandler onClick)
204
public void ToolStripDropDownItem_Ctor_String_Image_EventHandler_String(string text,
Image
image, EventHandler onClick, string name, string expectedName)
303
public void ToolStripDropDownItem_Ctor_String_Image_ToolStripItemArray(string text,
Image
image, ToolStripItem[] dropDownItems, ToolStripItem[] expectedDropDownItems)
497
public SubToolStripDropDownItem(string text,
Image
image, EventHandler onClick) : base(text, image, onClick)
501
public SubToolStripDropDownItem(string text,
Image
image, EventHandler onClick, string name) : base(text, image, onClick, name)
505
public SubToolStripDropDownItem(string text,
Image
image, params ToolStripItem[] dropDownItems) : base(text, image, dropDownItems)
System\Windows\Forms\ToolStripDropDownTests.cs (4)
794
public void ToolStripDropDown_BackgroundImage_Set_GetReturnsExpected(
Image
value)
2959
public void ToolStripDropDown_CreateDefaultItem_InvokeButton_Success(string text,
Image
image, EventHandler onClick)
2977
public void ToolStripDropDown_CreateDefaultItem_InvokeSeparator_Success(
Image
image, EventHandler onClick)
5170
public new ToolStripItem CreateDefaultItem(string text,
Image
image, EventHandler onClick) => base.CreateDefaultItem(text, image, onClick);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (2)
62
public void ToolStripItemImageRenderEventArgs_Ctor_Graphics_ToolStripItem_Rectangle(Graphics g, ToolStripItem item, Rectangle imageRectangle,
Image
expectedImage)
98
public void ToolStripItemImageRenderEventArgs_Ctor_ToolStripItem_Image_Rectangle(ToolStripItem item,
Image
image, Rectangle imageRectangle)
System\Windows\Forms\ToolStripItemTests.cs (115)
104
public void ToolStripItem_Ctor_String_Image_EventHandler(string text,
Image
image, EventHandler onClick)
199
public void ToolStripItem_Ctor_String_Image_EventHandler_String(string text,
Image
image, EventHandler onClick, string name, string expectedName)
1120
public void ToolStripItem_Available_Set_GetReturnsExpected(bool enabled,
Image
image, bool value)
1147
public void ToolStripItem_Available_SetDesignMode_GetReturnsExpected(bool enabled,
Image
image, bool value)
1211
public void ToolStripItem_Available_SetWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
1244
public void ToolStripItem_Available_SetDesignModeWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
1290
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
1300
public void ToolStripItem_Available_SetWithOwnerWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value, int expectedInvalidatedCallCount)
1349
public void ToolStripItem_Available_SetWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
1382
public void ToolStripItem_Available_SetDesignModeWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
1426
public void ToolStripItem_Available_SetWithParentWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value)
1769
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
1770
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
1775
public void ToolStripItem_BackgroundImage_Set_GetReturnsExpected(
Image
value)
1790
public void ToolStripItem_BackgroundImage_SetWithOwner_GetReturnsExpected(
Image
value)
1810
public void ToolStripItem_BackgroundImage_SetWithOwnerWithHandle_GetReturnsExpected(
Image
value)
1843
public void ToolStripItem_BackgroundImage_SetWithParent_GetReturnsExpected(
Image
value)
1865
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), 1 };
1866
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), 1 };
1871
public void ToolStripItem_BackgroundImage_SetWithParentWithHandle_GetReturnsExpected(
Image
value, int expectedInvalidatedCallCount)
2510
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
2520
public void ToolStripItem_Enabled_Set_GetReturnsExpected(bool visible,
Image
image, bool value)
2583
public void ToolStripItem_Enabled_SetDesignMode_GetReturnsExpected(bool visible,
Image
image, bool value)
2615
public void ToolStripItem_Enabled_SetWithOwner_GetReturnsExpected(bool visible,
Image
image, bool value)
2642
public void ToolStripItem_Enabled_SetWithImageWithOwner_GetReturnsExpected(bool visible,
Image
image, bool value)
2669
public void ToolStripItem_Enabled_SetDesignModeWithOwner_GetReturnsExpected(bool visible,
Image
image, bool value)
2707
public void ToolStripItem_Enabled_SetWithOwnerWithHandle_GetReturnsExpected(bool visible,
Image
image, bool value)
2750
public void ToolStripItem_Enabled_SetWithParent_GetReturnsExpected(bool visible,
Image
image, bool value)
2777
public void ToolStripItem_Enabled_SetWithImageWithParent_GetReturnsExpected(bool visible,
Image
image, bool value)
2804
public void ToolStripItem_Enabled_SetDesignModeWithParent_GetReturnsExpected(bool visible,
Image
image, bool value)
2844
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
2854
public void ToolStripItem_Enabled_SetWithParentWithHandle_GetReturnsExpected(bool visible,
Image
image, bool value, int expectedInvalidatedCallCount)
3785
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
3786
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
3792
public void ToolStripItem_Image_Set_GetReturnsExpected(Color imageTransparentColor,
Image
value)
3815
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), -1 };
3816
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), -1 };
3822
public void ToolStripItem_Image_SetWithImageIndex_GetReturnsExpected(Color imageTransparentColor,
Image
value, int expectedImageIndex)
3842
public void ToolStripItem_Image_SetWithNonNullOldValue_GetReturnsExpected(Color imageTransparentColor,
Image
value)
3863
public void ToolStripItem_Image_SetWithNonNullOldValueWithImageIndex_GetReturnsExpected(Color imageTransparentColor,
Image
value, int expectedImageIndex)
3889
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), 1 };
3890
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), 1 };
3896
public void ToolStripItem_Image_SetWithOwner_GetReturnsExpected(Color imageTransparentColor,
Image
value, int expectedOwnerLayoutCallCount)
3941
public void ToolStripItem_Image_SetWithOwnerWithHandle_GetReturnsExpected(Color imageTransparentColor,
Image
value, int expectedOwnerLayoutCallCount)
3999
public void ToolStripItem_Image_SetWithParent_GetReturnsExpected(Color imageTransparentColor,
Image
value)
4034
public void ToolStripItem_Image_SetWithParentWithHandle_GetReturnsExpected(Color imageTransparentColor,
Image
value)
5603
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), color };
5604
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), color };
5610
public void ToolStripItem_ImageTransparentColor_Set_GetReturnsExpected(
Image
image, Color value)
5627
public void ToolStripItem_ImageTransparentColor_SetWithCustomOldValue_GetReturnsExpected(
Image
image, Color value)
5645
public void ToolStripItem_ImageTransparentColor_SetWithOwner_GetReturnsExpected(
Image
image, Color value)
5670
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Empty, 0 };
5671
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Red, 1 };
5672
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Empty, 0 };
5673
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Red, 1 };
5678
public void ToolStripItem_ImageTransparentColor_SetWithOwnerWithHandle_GetReturnsExpected(
Image
image, Color value, int expectedInvalidatedCallCount)
5712
public void ToolStripItem_ImageTransparentColor_SetWithParent_GetReturnsExpected(
Image
image, Color value)
5737
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Empty, 0 };
5738
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), Color.Red, 1 };
5739
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Empty, 0 };
5740
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), Color.Red, 1 };
5745
public void ToolStripItem_ImageTransparentColor_SetWithParentWithHandle_GetReturnsExpected(
Image
image, Color value, int expectedParentInvalidatedCallCount)
6947
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
6961
public void ToolStripItem_Parent_Set_GetReturnsExpected(bool enabled, bool visible,
Image
image, bool allowDrop)
7017
public void ToolStripItem_Parent_SetWithMargin_GetReturnsExpected(bool enabled, bool visible,
Image
image, bool allowDrop)
9170
public void ToolStripItem_Visible_Set_GetReturnsExpected(bool enabled,
Image
image, bool value)
9197
public void ToolStripItem_Visible_SetDesignMode_GetReturnsExpected(bool enabled,
Image
image, bool value)
9261
public void ToolStripItem_Visible_SetWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
9294
public void ToolStripItem_Visible_SetDesignModeWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
9340
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
9350
public void ToolStripItem_Visible_SetWithOwnerWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value, int expectedInvalidatedCallCount)
9399
public void ToolStripItem_Visible_SetWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
9432
public void ToolStripItem_Visible_SetDesignModeWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
9476
public void ToolStripItem_Visible_SetWithParentWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value)
11096
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
11107
public void ToolStripItem_OnEnabledChanged_Invoke_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
11136
public void ToolStripItem_OnEnabledChanged_InvokeDesignMode_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
11165
public void ToolStripItem_OnEnabledChanged_InvokeWithOwner_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
11198
public void ToolStripItem_OnEnabledChanged_InvokeWithOwnerWithHandle_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
11244
public void ToolStripItem_OnEnabledChanged_InvokeWithParent_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
11277
public void ToolStripItem_OnEnabledChanged_InvokeWithParentWithHandle_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
12523
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
12539
public void ToolStripItem_OnParentChanged_Invoke_Success(bool enabled, bool visible,
Image
image, bool allowDrop, ToolStrip oldParent, ToolStrip newParent)
12553
public void ToolStripItem_OnParentEnabledChanged_Invoke_CallsEnabledChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13189
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
13200
public void ToolStripItem_OnVisibleChanged_Invoke_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13229
public void ToolStripItem_OnVisibleChanged_InvokeDesignMode_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13258
public void ToolStripItem_OnVisibleChanged_InvokeWithOwner_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13302
public void ToolStripItem_OnVisibleChanged_InvokeWithOwnerWithHandle_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13368
public void ToolStripItem_OnVisibleChanged_InvokeWithDisposingOwner_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13434
public void ToolStripItem_OnVisibleChanged_InvokeWithDisposedOwner_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13494
public void ToolStripItem_OnVisibleChanged_InvokeWithParent_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
13538
public void ToolStripItem_OnVisibleChanged_InvokeWithParentWithHandle_CallsVisibleChanged(bool enabled, bool visible,
Image
image, EventArgs eventArgs)
14820
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
14830
public void ToolStripItem_SetVisibleCore_Invoke_GetReturnsExpected(bool enabled,
Image
image, bool value)
14858
public void ToolStripItem_SetVisibleCore_InvokeDesignMode_GetReturnsExpected(bool enabled,
Image
image, bool value)
14923
public void ToolStripItem_SetVisibleCore_InvokeWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
14956
public void ToolStripItem_SetVisibleCore_InvokeDesignModeWithOwner_GetReturnsExpected(bool enabled,
Image
image, bool value)
15002
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
15012
public void ToolStripItem_SetVisibleCore_InvokeWithOwnerWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value, int expectedInvalidatedCallCount)
15061
public void ToolStripItem_SetVisibleCore_InvokeWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
15094
public void ToolStripItem_SetVisibleCore_InvokeDesignModeWithParent_GetReturnsExpected(bool enabled,
Image
image, bool value)
15138
public void ToolStripItem_SetVisibleCore_InvokeWithParentWithHandle_GetReturnsExpected(bool enabled,
Image
image, bool value)
15489
public SubToolStripItem(string text,
Image
image, EventHandler onClick) : base(text, image, onClick)
15493
public SubToolStripItem(string text,
Image
image, EventHandler onClick, string name) : base(text, image, onClick, name)
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
413
public SubToolStripMenuItem(string text,
Image
image, EventHandler onClick) : base(text, image, onClick)
417
public SubToolStripMenuItem(string text,
Image
image, EventHandler onClick, string name) : base(text, image, onClick, name)
421
public SubToolStripMenuItem(string text,
Image
image, params ToolStripItem[] dropDownItems) : base(text, image, dropDownItems)
System\Windows\Forms\ToolStripRendererTests.cs (5)
15
Image
result = Assert.IsType<Bitmap>(ToolStripRenderer.CreateDisabledImage(image));
204
public void ToolStripRenderer_DrawItemCheck_Invoke_CallsRenderItemCheck(Graphics graphics, ToolStripItem item,
Image
image, Rectangle imageRectangle)
237
public void ToolStripRenderer_DrawItemImage_Invoke_CallsRenderItemImage(Graphics graphics, ToolStripItem item,
Image
image, Rectangle imageRectangle)
799
public void ToolStripRenderer_OnRenderItemCheck_Invoke_Nop(Graphics graphics, ToolStripItem item,
Image
image, Rectangle imageRectangle)
819
public void ToolStripRenderer_OnRenderItemImage_Invoke_Nop(Graphics graphics, ToolStripItem item,
Image
image, Rectangle imageRectangle)
System\Windows\Forms\ToolStripSeparatorTests.cs (12)
114
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
115
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
120
public void ToolStripSeparator_BackgroundImage_Set_GetReturnsExpected(
Image
value)
244
foreach (
Image
image in new
Image
[] { null, new Bitmap(10, 10) })
254
public void ToolStripSeparator_Enabled_Set_GetReturnsExpected(bool visible,
Image
image, bool value)
421
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")) };
422
yield return new object[] { imageTransparentColor,
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")) };
428
public void ToolStripSeparator_Image_Set_GetReturnsExpected(Color imageTransparentColor,
Image
value)
531
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "nature24bits.gif")), color };
532
yield return new object[] {
Image
.FromFile(Path.Combine("bitmaps", "10x16_one_entry_32bit.ico")), color };
538
public void ToolStripSeparator_ImageTransparentColor_Set_GetReturnsExpected(
Image
image, Color value)
System\Windows\Forms\ToolStripTests.cs (15)
4277
public void ToolStrip_CreateDefaultItem_InvokeButton_Success(string text,
Image
image, EventHandler onClick)
4295
public void ToolStrip_CreateDefaultItem_InvokeSeparator_Success(
Image
image, EventHandler onClick)
5851
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb), new Bitmap(10, 10, PixelFormat.Format32bppArgb) })
5869
public void ToolStrip_OnPaintBackground_Invoke_Success(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
5924
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
5976
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
6016
public void ToolStrip_OnPaintBackground_InvokeWithParent_CallsPaint(Control parent, bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
6067
public void ToolStrip_OnPaintBackground_InvokeWithHandle_Success(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout)
6122
foreach (
Image
backgroundImage in new
Image
[] { null, new Bitmap(10, 10, PixelFormat.Format32bppRgb) })
6154
public void ToolStrip_OnPaintBackground_InvokeWithParentWithHandle_CallsPaint(bool hScroll, bool vScroll, bool supportsTransparentBackColor, Color backColor,
Image
backgroundImage, ImageLayout backgroundImageLayout, int expectedPaintCallCount)
7604
public new ToolStripItem CreateDefaultItem(string text,
Image
image, EventHandler onClick) => base.CreateDefaultItem(text, image, onClick);
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
55
using
Image
image = new Bitmap(width, height);
System\Windows\Forms\TreeViewTests.cs (7)
791
public void TreeView_BackgroundImage_Set_GetReturnsExpected(
Image
value)
6003
yield return new object[] { Array.Empty<
Image
>(), null, false };
6004
yield return new object[] { new
Image
[] { new Bitmap(10, 10) }, null, true };
6005
yield return new object[] { Array.Empty<
Image
>(), new EventArgs(), false };
6006
yield return new object[] { new
Image
[] { new Bitmap(10, 10) }, new EventArgs(), true };
6011
public void TreeView_OnHandleCreated_InvokeWithHandleWithProperties_CallsHandleCreated(
Image
[] images, EventArgs eventArgs, bool expectedStateImageListHandleCreated)
6081
public void TreeView_OnHandleCreated_InvokeWithHandleWithPropertiesDesignMode_CallsHandleCreated(
Image
[] images, EventArgs eventArgs, bool expectedStateImageListHandleCreated)
System\Windows\Forms\UpDownBaseTests.cs (1)
602
public void UpDownBase_BackgroundImage_Set_GetReturnsExpected(
Image
value)
TextBoxBaseTests.cs (1)
441
public void TextBoxBase_BackgroundImage_Set_GetReturnsExpected(
Image
value)
ToolStripContainerTests.cs (1)
72
using
Image
value = new Bitmap(10, 10);
TrackBarTests.cs (1)
436
public void TrackBar_BackgroundImage_Set_GetReturnsExpected(
Image
value)
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
34
public static TheoryData<
Image
> GetImageTheoryData()
36
TheoryData<
Image
> data = new()
System.Windows.Forms.UI.IntegrationTests (2)
PropertyGridTests.cs (1)
181
using
Image
newImage = new Bitmap(100, 100);
ToolStripTests.cs (1)
17
_sharedImageList.Images.Add("square",
Image
.FromFile("./Resources/image.png"));
WindowsFormsIntegration (3)
System\Windows\Integration\Convert.cs (1)
139
internal static SWMI.BitmapImage ToSystemWindowsMediaImagingBitmapImage(SD.
Image
fromImage)
System\Windows\Integration\HostUtils.cs (2)
289
SD.
Image
newImage = null;
297
using (newImage = SD.
Image
.FromStream(memoryStream))
WinFormsControlsTest (17)
CollectionEditors.cs (4)
26
imageList.Images.Add("SmallA",
Image
.FromFile("Images\\SmallA.bmp"));
27
imageList.Images.Add(
Image
.FromFile("Images\\SmallABlue.bmp"));
28
imageList.Images.Add("LargeA",
Image
.FromFile("Images\\LargeA.bmp"));
29
imageList.Images.Add(
Image
.FromFile("Images\\LargeABlue.bmp"));
DataGridViewTest.cs (1)
30
column6.Image =
Image
.FromFile("Images\\SmallA.bmp");
ListViewTest.cs (6)
130
imageListSmall.Images.Add(
Image
.FromFile("Images\\SmallA.bmp"));
131
imageListSmall.Images.Add(
Image
.FromFile("Images\\SmallABlue.bmp"));
132
imageListLarge.Images.Add(
Image
.FromFile("Images\\LargeA.bmp"));
133
imageListLarge.Images.Add(
Image
.FromFile("Images\\LargeABlue.bmp"));
249
Bitmap bitmap = (Bitmap)
Image
.FromFile(file);
280
Bitmap bitmap = (Bitmap)
Image
.FromFile(file);
MultipleControls.cs (4)
92
imageListSmall.Images.Add(
Image
.FromFile("Images\\SmallA.bmp"));
93
imageListSmall.Images.Add(
Image
.FromFile("Images\\SmallABlue.bmp"));
94
imageListLarge.Images.Add(
Image
.FromFile("Images\\LargeA.bmp"));
95
imageListLarge.Images.Add(
Image
.FromFile("Images\\LargeABlue.bmp"));
ToolStripTests.cs (2)
20
toolStrip2_Button4.Image =
Image
.FromFile("Images\\SmallA.bmp");
22
toolStrip2_Button5.Image =
Image
.FromFile("Images\\SmallABlue.bmp");