113 instantiations of ImageAttributes
System.Drawing.Common (2)
System\Drawing\Bitmap.cs (1)
246
using (ImageAttributes attributes =
new
())
System\Drawing\Imaging\ImageAttributes.cs (1)
95
return new
ImageAttributes
(clone);
System.Drawing.Common.Tests (99)
mono\System.Drawing\GraphicsTests.cs (1)
2755
using ImageAttributes ia =
new
();
System\Drawing\Imaging\ImageAttributesTests.cs (96)
64
ImageAttributes imageAttr =
new
();
73
using ImageAttributes imageAttr =
new
();
85
ImageAttributes imageAttr =
new
();
97
using ImageAttributes imageAttr =
new
();
132
using ImageAttributes imageAttr =
new
();
150
using ImageAttributes imageAttr =
new
();
176
using ImageAttributes imageAttr =
new
();
207
using ImageAttributes imageAttr =
new
();
218
ImageAttributes imageAttr =
new
();
230
using ImageAttributes imageAttr =
new
();
249
using ImageAttributes imageAttr =
new
();
266
using ImageAttributes imageAttr =
new
();
276
using ImageAttributes imageAttr =
new
();
303
using ImageAttributes imageAttr =
new
();
324
ImageAttributes imageAttr =
new
();
335
using ImageAttributes imageAttr =
new
();
345
using ImageAttributes imageAttr =
new
();
368
using ImageAttributes imageAttr =
new
();
395
using ImageAttributes imageAttr =
new
();
424
using ImageAttributes imageAttr =
new
();
436
ImageAttributes imageAttr =
new
();
448
using ImageAttributes imageAttr =
new
();
462
using ImageAttributes imageAttr =
new
();
474
using ImageAttributes imageAttr =
new
();
485
using ImageAttributes imageAttr =
new
();
498
using ImageAttributes imageAttr =
new
();
511
using ImageAttributes imageAttr =
new
();
521
ImageAttributes imageAttr =
new
();
531
using ImageAttributes imageAttr =
new
();
540
using ImageAttributes imageAttr =
new
();
554
using ImageAttributes imageAttr =
new
();
565
ImageAttributes imageAttr =
new
();
575
using ImageAttributes imageAttr =
new
();
584
using ImageAttributes imageAttr =
new
();
597
using ImageAttributes imageAttr =
new
();
610
using ImageAttributes imageAttr =
new
();
620
ImageAttributes imageAttr =
new
();
631
using ImageAttributes imageAttr =
new
();
641
using ImageAttributes imageAttr =
new
();
653
ImageAttributes imageAttr =
new
();
663
using ImageAttributes imageAttr =
new
();
672
using ImageAttributes imageAttr =
new
();
687
using ImageAttributes imageAttr =
new
();
700
ImageAttributes imageAttr =
new
();
711
using ImageAttributes imageAttr =
new
();
720
using ImageAttributes imageAttr =
new
();
737
using ImageAttributes imageAttr =
new
();
754
using ImageAttributes imageAttr =
new
();
768
ImageAttributes imageAttr =
new
();
779
using ImageAttributes imageAttr =
new
();
788
using ImageAttributes imageAttr =
new
();
803
using ImageAttributes imageAttr =
new
();
818
using ImageAttributes imageAttr =
new
();
829
ImageAttributes imageAttr =
new
();
841
using ImageAttributes imageAttr =
new
();
851
using ImageAttributes imageAttr =
new
();
866
using ImageAttributes imageAttr =
new
();
878
ImageAttributes imageAttr =
new
();
889
using ImageAttributes imageAttr =
new
();
907
using ImageAttributes imageAttr =
new
();
933
using ImageAttributes imageAttr =
new
();
963
using ImageAttributes imageAttr =
new
();
974
ImageAttributes imageAttr =
new
();
985
using ImageAttributes imageAttr =
new
();
1002
using ImageAttributes imageAttr =
new
();
1012
using ImageAttributes imageAttr =
new
();
1027
using ImageAttributes imageAttr =
new
();
1039
ImageAttributes imageAttr =
new
();
1050
using ImageAttributes imageAttr =
new
();
1059
using ImageAttributes imageAttr =
new
();
1070
ImageAttributes imageAttr =
new
();
1082
using ImageAttributes imageAttr =
new
();
1090
using ImageAttributes imageAttr =
new
();
1098
using ImageAttributes imageAttr =
new
();
1107
using ImageAttributes imageAttr =
new
();
1116
using ImageAttributes imageAttr =
new
();
1125
using ImageAttributes imageAttr =
new
();
1141
using ImageAttributes imageAttr =
new
();
1154
ImageAttributes imageAttr =
new
();
1165
using ImageAttributes imageAttr =
new
();
1174
using ImageAttributes imageAttr =
new
();
1187
using ImageAttributes imageAttr =
new
();
1200
using ImageAttributes imageAttr =
new
();
1210
ImageAttributes imageAttr =
new
();
1221
using ImageAttributes imageAttr =
new
();
1228
using ImageAttributes imageAttr =
new
();
1235
using ImageAttributes imageAttr =
new
();
1242
using ImageAttributes imageAttr =
new
();
1251
using ImageAttributes imageAttr =
new
();
1265
using ImageAttributes imageAttr =
new
();
1276
ImageAttributes imageAttr =
new
();
1287
using ImageAttributes imageAttr =
new
();
1294
ImageAttributes imageAttr =
new
();
1305
ImageAttributes imageAttr =
new
();
1315
using ImageAttributes imageAttr =
new
();
1324
using ImageAttributes imageAttr =
new
();
System\Drawing\TextureBrushTests.cs (2)
187
yield return new object[] { ((Image)data[0]).Clone(), data[1], new
ImageAttributes
(), WrapMode.Clamp };
189
ImageAttributes customWrapMode =
new
();
System.Windows.Forms (11)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
830
using ImageAttributes attr =
new
();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1036
using ImageAttributes attr =
new
();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
95
graphics.DrawImage(invertedImage, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new
ImageAttributes
());
99
graphics.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new
ImageAttributes
());
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
492
using ImageAttributes attrs =
new
();
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1164
imgAttrib ??= new
ImageAttributes
();
System\Windows\Forms\Rendering\ControlPaint.cs (5)
538
using ImageAttributes imageAttrib =
new
();
1486
ImageAttributes attributes =
new
();
1588
using ImageAttributes attributes =
new
();
1607
using ImageAttributes attributes =
new
();
1654
t_disabledImageAttr = new
ImageAttributes
();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
130
using ImageAttributes attributes =
new
();
148 references to ImageAttributes
System.Drawing (1)
System.Drawing.cs (1)
86
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.
ImageAttributes
))]
System.Drawing.Common (34)
System\Drawing\Bitmap.cs (1)
246
using (
ImageAttributes
attributes = new())
System\Drawing\Graphics.cs (26)
2154
public void DrawImage(Image image, PointF[] destPoints, RectangleF srcRect, GraphicsUnit srcUnit,
ImageAttributes
? imageAttr) =>
2162
ImageAttributes
? imageAttr,
2171
ImageAttributes
? imageAttr,
2209
ImageAttributes
? imageAttr) => DrawImage(image, destPoints, srcRect, srcUnit, imageAttr, null, 0);
2216
ImageAttributes
? imageAttr,
2224
ImageAttributes
? imageAttr,
2272
ImageAttributes
? imageAttrs) => DrawImage(image, destRect, srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttrs, null);
2282
ImageAttributes
? imageAttrs,
2293
ImageAttributes
? imageAttrs,
2332
ImageAttributes
? imageAttr) => DrawImage(image, destRect, (float)srcX, srcY, srcWidth, srcHeight, srcUnit, imageAttr, null);
2342
ImageAttributes
? imageAttr,
2353
ImageAttributes
? imageAttrs,
2944
ImageAttributes
? imageAttr)
2965
ImageAttributes
? imageAttr)
2973
ImageAttributes
? imageAttr)
2994
ImageAttributes
? imageAttr) => EnumerateMetafile(metafile, (RectangleF)destRect, callback, callbackData, imageAttr);
3001
ImageAttributes
? imageAttr)
3030
ImageAttributes
? imageAttr)
3061
ImageAttributes
? imageAttr)
3086
ImageAttributes
? imageAttr) => EnumerateMetafile(
3102
ImageAttributes
? imageAttr)
3127
ImageAttributes
? imageAttr) => EnumerateMetafile(metafile, (RectangleF)destRect, srcRect, unit, callback, callbackData, imageAttr);
3136
ImageAttributes
? imageAttr)
3169
ImageAttributes
? imageAttr)
3613
/// <inheritdoc cref="DrawImage(Image, Effect, RectangleF, Matrix?, GraphicsUnit,
ImageAttributes
?)"/>
3633
ImageAttributes
? imageAttr = default)
System\Drawing\Imaging\ImageAttributes.cs (4)
52
/// Initializes a new instance of the <see cref='
ImageAttributes
'/> class.
66
/// Cleans up Windows resources for this <see cref='
ImageAttributes
'/>.
82
/// Cleans up Windows resources for this <see cref='
ImageAttributes
'/>.
87
/// Creates an exact copy of this <see cref='
ImageAttributes
'/>.
System\Drawing\PointerExtensions.cs (1)
24
public static GpImageAttributes* Pointer(this
ImageAttributes
? imageAttr) => imageAttr is null ? null : imageAttr._nativeImageAttributes;
System\Drawing\TextureBrush.cs (2)
62
public TextureBrush(Image image, RectangleF dstRect,
ImageAttributes
? imageAttr)
83
public TextureBrush(Image image, Rectangle dstRect,
ImageAttributes
? imageAttr)
System.Drawing.Common.Tests (102)
mono\System.Drawing\GraphicsTests.cs (1)
2755
using
ImageAttributes
ia = new();
System\Drawing\Imaging\ImageAttributesTests.cs (98)
64
ImageAttributes
imageAttr = new();
73
using
ImageAttributes
imageAttr = new();
76
using
ImageAttributes
clone = Assert.IsAssignableFrom<
ImageAttributes
>(imageAttr.Clone());
85
ImageAttributes
imageAttr = new();
97
using
ImageAttributes
imageAttr = new();
132
using
ImageAttributes
imageAttr = new();
150
using
ImageAttributes
imageAttr = new();
176
using
ImageAttributes
imageAttr = new();
207
using
ImageAttributes
imageAttr = new();
218
ImageAttributes
imageAttr = new();
230
using
ImageAttributes
imageAttr = new();
249
using
ImageAttributes
imageAttr = new();
266
using
ImageAttributes
imageAttr = new();
276
using
ImageAttributes
imageAttr = new();
303
using
ImageAttributes
imageAttr = new();
324
ImageAttributes
imageAttr = new();
335
using
ImageAttributes
imageAttr = new();
345
using
ImageAttributes
imageAttr = new();
368
using
ImageAttributes
imageAttr = new();
395
using
ImageAttributes
imageAttr = new();
424
using
ImageAttributes
imageAttr = new();
436
ImageAttributes
imageAttr = new();
448
using
ImageAttributes
imageAttr = new();
462
using
ImageAttributes
imageAttr = new();
474
using
ImageAttributes
imageAttr = new();
485
using
ImageAttributes
imageAttr = new();
498
using
ImageAttributes
imageAttr = new();
511
using
ImageAttributes
imageAttr = new();
521
ImageAttributes
imageAttr = new();
531
using
ImageAttributes
imageAttr = new();
540
using
ImageAttributes
imageAttr = new();
554
using
ImageAttributes
imageAttr = new();
565
ImageAttributes
imageAttr = new();
575
using
ImageAttributes
imageAttr = new();
584
using
ImageAttributes
imageAttr = new();
597
using
ImageAttributes
imageAttr = new();
610
using
ImageAttributes
imageAttr = new();
620
ImageAttributes
imageAttr = new();
631
using
ImageAttributes
imageAttr = new();
641
using
ImageAttributes
imageAttr = new();
653
ImageAttributes
imageAttr = new();
663
using
ImageAttributes
imageAttr = new();
672
using
ImageAttributes
imageAttr = new();
687
using
ImageAttributes
imageAttr = new();
700
ImageAttributes
imageAttr = new();
711
using
ImageAttributes
imageAttr = new();
720
using
ImageAttributes
imageAttr = new();
737
using
ImageAttributes
imageAttr = new();
754
using
ImageAttributes
imageAttr = new();
768
ImageAttributes
imageAttr = new();
779
using
ImageAttributes
imageAttr = new();
788
using
ImageAttributes
imageAttr = new();
803
using
ImageAttributes
imageAttr = new();
818
using
ImageAttributes
imageAttr = new();
829
ImageAttributes
imageAttr = new();
841
using
ImageAttributes
imageAttr = new();
851
using
ImageAttributes
imageAttr = new();
866
using
ImageAttributes
imageAttr = new();
878
ImageAttributes
imageAttr = new();
889
using
ImageAttributes
imageAttr = new();
907
using
ImageAttributes
imageAttr = new();
933
using
ImageAttributes
imageAttr = new();
963
using
ImageAttributes
imageAttr = new();
974
ImageAttributes
imageAttr = new();
985
using
ImageAttributes
imageAttr = new();
1002
using
ImageAttributes
imageAttr = new();
1012
using
ImageAttributes
imageAttr = new();
1027
using
ImageAttributes
imageAttr = new();
1039
ImageAttributes
imageAttr = new();
1050
using
ImageAttributes
imageAttr = new();
1059
using
ImageAttributes
imageAttr = new();
1070
ImageAttributes
imageAttr = new();
1082
using
ImageAttributes
imageAttr = new();
1090
using
ImageAttributes
imageAttr = new();
1098
using
ImageAttributes
imageAttr = new();
1107
using
ImageAttributes
imageAttr = new();
1116
using
ImageAttributes
imageAttr = new();
1125
using
ImageAttributes
imageAttr = new();
1141
using
ImageAttributes
imageAttr = new();
1154
ImageAttributes
imageAttr = new();
1165
using
ImageAttributes
imageAttr = new();
1174
using
ImageAttributes
imageAttr = new();
1187
using
ImageAttributes
imageAttr = new();
1200
using
ImageAttributes
imageAttr = new();
1210
ImageAttributes
imageAttr = new();
1221
using
ImageAttributes
imageAttr = new();
1228
using
ImageAttributes
imageAttr = new();
1235
using
ImageAttributes
imageAttr = new();
1242
using
ImageAttributes
imageAttr = new();
1251
using
ImageAttributes
imageAttr = new();
1265
using
ImageAttributes
imageAttr = new();
1276
ImageAttributes
imageAttr = new();
1287
using
ImageAttributes
imageAttr = new();
1294
ImageAttributes
imageAttr = new();
1305
ImageAttributes
imageAttr = new();
1315
using
ImageAttributes
imageAttr = new();
1324
using
ImageAttributes
imageAttr = new();
System\Drawing\TextureBrushTests.cs (3)
189
ImageAttributes
customWrapMode = new();
197
public void Ctor_Image_Rectangle_ImageAttributes(Image image, Rectangle rectangle,
ImageAttributes
attributes, WrapMode expectedWrapMode)
219
public void Ctor_Image_RectangleF_ImageAttributes(Image image, Rectangle rectangle,
ImageAttributes
attributes, WrapMode expectedWrapMode)
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
830
using
ImageAttributes
attr = new();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1036
using
ImageAttributes
attr = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
492
using
ImageAttributes
attrs = new();
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (1)
50
internal
ImageAttributes
? ImageAttributes { get; set; }
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1160
private static Bitmap CreateDisabledImage(Image normalImage,
ImageAttributes
? imgAttrib)
System\Windows\Forms\Rendering\ControlPaint.cs (5)
55
private static
ImageAttributes
? t_disabledImageAttr; // ImageAttributes used to render disabled images
538
using
ImageAttributes
imageAttrib = new();
1486
ImageAttributes
attributes = new();
1588
using
ImageAttributes
attributes = new();
1607
using
ImageAttributes
attributes = new();
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
130
using
ImageAttributes
attributes = new();