78 references to PixelFormat
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
125
Bitmap bitmapFinal = new(imageWidth, imageHeight,
PixelFormat
.Format32bppRgb);
130
PixelFormat
.Format32bppRgb);
System.Drawing (1)
System.Drawing.cs (1)
98
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.
PixelFormat
))]
System.Drawing.Common (62)
GlobalUsings.cs (1)
33
global using PixelFormat = System.Drawing.Imaging.
PixelFormat
;
System\Drawing\Bitmap.cs (18)
84
public Bitmap(int width, int height) : this(width, height,
PixelFormat
.Format32bppArgb)
98
public Bitmap(int width, int height, int stride,
PixelFormat
format, IntPtr scan0)
105
public Bitmap(int width, int height,
PixelFormat
format)
120
public Bitmap(Image original, int width, int height) : this(width, height,
PixelFormat
.Format32bppArgb)
187
public Bitmap Clone(RectangleF rect,
PixelFormat
format)
240
using Bitmap result = new(size.Width, size.Height,
PixelFormat
.Format32bppArgb);
265
public BitmapData LockBits(Rectangle rect, ImageLockMode flags,
PixelFormat
format) =>
268
public BitmapData LockBits(Rectangle rect, ImageLockMode flags,
PixelFormat
format, BitmapData bitmapData)
317
if ((PixelFormat &
PixelFormat
.Indexed) != 0)
342
public Bitmap Clone(Rectangle rect,
PixelFormat
format)
392
/// The new pixel format. <see cref="
PixelFormat
.Format16bppGrayScale"/> is not supported.
420
/// <see cref="ConvertFormat(
PixelFormat
, DitherType, PaletteType, ColorPalette?, float)"/> performs a nearest-color
447
PixelFormat
format,
487
/// The new pixel format. <see cref="
PixelFormat
.Format16bppGrayScale"/> is not supported.
490
public void ConvertFormat(
PixelFormat
format)
492
PixelFormat
currentFormat = PixelFormat;
496
if (!format.HasFlag(
PixelFormat
.Indexed))
503
bool hasAlpha = format.HasFlag(
PixelFormat
.Alpha);
System\Drawing\Graphics.cs (1)
132
if ((image.PixelFormat &
PixelFormat
.Indexed) != 0)
System\Drawing\Icon.cs (4)
632
bitmap = new Bitmap(Size.Width, Size.Height,
PixelFormat
.Format32bppArgb);
637
PixelFormat
.Format32bppArgb);
691
bitmap = new Bitmap(bmpData.Width, bmpData.Height,
PixelFormat
.Format32bppArgb);
692
targetData = bitmap.LockBits(new Rectangle(0, 0, bmpData.Width, bmpData.Height), ImageLockMode.WriteOnly,
PixelFormat
.Format32bppArgb);
System\Drawing\Image.cs (9)
517
public
PixelFormat
PixelFormat => (
PixelFormat
)this.GetPixelFormat();
789
public static bool IsExtendedPixelFormat(
PixelFormat
pixfmt) => (pixfmt &
PixelFormat
.Extended) != 0;
794
public static bool IsCanonicalPixelFormat(
PixelFormat
pixfmt)
803
return (pixfmt &
PixelFormat
.Canonical) != 0;
847
public static int GetPixelFormatSize(
PixelFormat
pixfmt) => ((int)pixfmt >> 8) & 0xFF;
852
public static bool IsAlphaPixelFormat(
PixelFormat
pixfmt) => (pixfmt &
PixelFormat
.Alpha) != 0;
System\Drawing\Imaging\BitmapData.cs (25)
17
private
PixelFormat
_pixelFormat;
51
public
PixelFormat
PixelFormat
58
case
PixelFormat
.DontCare:
60
case
PixelFormat
.Max:
61
case
PixelFormat
.Indexed:
62
case
PixelFormat
.Gdi:
63
case
PixelFormat
.Format16bppRgb555:
64
case
PixelFormat
.Format16bppRgb565:
65
case
PixelFormat
.Format24bppRgb:
66
case
PixelFormat
.Format32bppRgb:
67
case
PixelFormat
.Format1bppIndexed:
68
case
PixelFormat
.Format4bppIndexed:
69
case
PixelFormat
.Format8bppIndexed:
70
case
PixelFormat
.Alpha:
71
case
PixelFormat
.Format16bppArgb1555:
72
case
PixelFormat
.PAlpha:
73
case
PixelFormat
.Format32bppPArgb:
74
case
PixelFormat
.Extended:
75
case
PixelFormat
.Format16bppGrayScale:
76
case
PixelFormat
.Format48bppRgb:
77
case
PixelFormat
.Format64bppPArgb:
78
case
PixelFormat
.Canonical:
79
case
PixelFormat
.Format32bppArgb:
80
case
PixelFormat
.Format64bppArgb:
83
throw new ComponentModel.InvalidEnumArgumentException(nameof(value), (int)value, typeof(
PixelFormat
));
System\Drawing\Imaging\CachedBitmap.cs (1)
18
/// that matches. If the <see cref="CachedBitmap"/> was created against <see cref="
PixelFormat
.Format32bppRgb"/> it
System\Drawing\Imaging\DitherType.cs (3)
16
/// <see cref="Bitmap.ConvertFormat(
PixelFormat
, DitherType, PaletteType, ColorPalette?, float)"/>
24
/// <see cref="Bitmap.ConvertFormat(
PixelFormat
, DitherType, PaletteType, ColorPalette?, float)"/> method.
67
/// <see cref="Bitmap.ConvertFormat(
PixelFormat
, DitherType, PaletteType, ColorPalette?, float)"/> method.
System.Windows.Forms (7)
System\Windows\Forms\Controls\ImageList\ImageList.cs (4)
573
if (bmpData.PixelFormat is not
PixelFormat
.Format32bppArgb and not
PixelFormat
.Format32bppRgb)
631
result = new Bitmap(_imageSize.Width, _imageSize.Height,
PixelFormat
.Format32bppArgb);
632
targetData = result.LockBits(new Rectangle(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.WriteOnly,
PixelFormat
.Format32bppArgb);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
919
using Bitmap textBmp = new(textSize.Width, textSize.Height,
PixelFormat
.Format32bppPArgb);
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
375
_cachedBitmap = new Bitmap(width, height,
PixelFormat
.Format32bppArgb);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
295
PixelFormat
.Format32bppArgb);
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1013
_dragImage = new Bitmap(imageWidth, imageHeight, Drawing.Imaging.
PixelFormat
.Format32bppPArgb);
System\Windows\Forms\Design\DesignerUtils.cs (4)
120
s_boxImage = new Bitmap(s_boxImageSize, s_boxImageSize,
PixelFormat
.Format32bppPArgb);
392
PixelFormat
.Format32bppPArgb);
425
PixelFormat
.Format32bppPArgb);
671
BitmapData data = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite,
PixelFormat
.Format32bppArgb);
System\Windows\Forms\Design\ImageListImage.cs (1)
42
public
PixelFormat
PixelFormat => Image.PixelFormat;