12 references to PixelFormat
System.Drawing.Common (5)
misc\DpiHelper.cs (1)
105
Bitmap deviceImage = new(deviceImageSize.Width, deviceImageSize.Height, logicalImage.
PixelFormat
);
System\Drawing\Bitmap.cs (2)
317
if ((
PixelFormat
& PixelFormat.Indexed) != 0)
492
PixelFormat currentFormat =
PixelFormat
;
System\Drawing\Graphics.cs (1)
132
if ((image.
PixelFormat
& PixelFormat.Indexed) != 0)
System\Drawing\Icon.cs (1)
686
bmpData = tmpBitmap.LockBits(new Rectangle(0, 0, tmpBitmap.Width, tmpBitmap.Height), ImageLockMode.ReadOnly, tmpBitmap.
PixelFormat
);
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (1)
5006
using Bitmap image = new(width, height, bitmap.
PixelFormat
);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
625
bmpData = tmpBitmap.LockBits(imageInfo.rcImage, ImageLockMode.ReadOnly, tmpBitmap.
PixelFormat
);
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\Rendering\ControlPaint.cs (1)
2485
Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.
PixelFormat
);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ImageListImage.cs (1)
42
public PixelFormat PixelFormat => Image.
PixelFormat
;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
177
Bitmap scaledBitmap = new(desiredSize.Width, desiredSize.Height, bitmap.
PixelFormat
);