78 references to PixelFormat
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
125Bitmap bitmapFinal = new(imageWidth, imageHeight, PixelFormat.Format32bppRgb); 130PixelFormat.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)
33global using PixelFormat = System.Drawing.Imaging.PixelFormat;
System\Drawing\Bitmap.cs (18)
84public Bitmap(int width, int height) : this(width, height, PixelFormat.Format32bppArgb) 98public Bitmap(int width, int height, int stride, PixelFormat format, IntPtr scan0) 105public Bitmap(int width, int height, PixelFormat format) 120public Bitmap(Image original, int width, int height) : this(width, height, PixelFormat.Format32bppArgb) 187public Bitmap Clone(RectangleF rect, PixelFormat format) 240using Bitmap result = new(size.Width, size.Height, PixelFormat.Format32bppArgb); 265public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format) => 268public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData) 317if ((PixelFormat & PixelFormat.Indexed) != 0) 342public 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 447PixelFormat format, 487/// The new pixel format. <see cref="PixelFormat.Format16bppGrayScale"/> is not supported. 490public void ConvertFormat(PixelFormat format) 492PixelFormat currentFormat = PixelFormat; 496if (!format.HasFlag(PixelFormat.Indexed)) 503bool hasAlpha = format.HasFlag(PixelFormat.Alpha);
System\Drawing\Graphics.cs (1)
132if ((image.PixelFormat & PixelFormat.Indexed) != 0)
System\Drawing\Icon.cs (4)
632bitmap = new Bitmap(Size.Width, Size.Height, PixelFormat.Format32bppArgb); 637PixelFormat.Format32bppArgb); 691bitmap = new Bitmap(bmpData.Width, bmpData.Height, PixelFormat.Format32bppArgb); 692targetData = bitmap.LockBits(new Rectangle(0, 0, bmpData.Width, bmpData.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
System\Drawing\Image.cs (9)
517public PixelFormat PixelFormat => (PixelFormat)this.GetPixelFormat(); 789public static bool IsExtendedPixelFormat(PixelFormat pixfmt) => (pixfmt & PixelFormat.Extended) != 0; 794public static bool IsCanonicalPixelFormat(PixelFormat pixfmt) 803return (pixfmt & PixelFormat.Canonical) != 0; 847public static int GetPixelFormatSize(PixelFormat pixfmt) => ((int)pixfmt >> 8) & 0xFF; 852public static bool IsAlphaPixelFormat(PixelFormat pixfmt) => (pixfmt & PixelFormat.Alpha) != 0;
System\Drawing\Imaging\BitmapData.cs (25)
17private PixelFormat _pixelFormat; 51public PixelFormat PixelFormat 58case PixelFormat.DontCare: 60case PixelFormat.Max: 61case PixelFormat.Indexed: 62case PixelFormat.Gdi: 63case PixelFormat.Format16bppRgb555: 64case PixelFormat.Format16bppRgb565: 65case PixelFormat.Format24bppRgb: 66case PixelFormat.Format32bppRgb: 67case PixelFormat.Format1bppIndexed: 68case PixelFormat.Format4bppIndexed: 69case PixelFormat.Format8bppIndexed: 70case PixelFormat.Alpha: 71case PixelFormat.Format16bppArgb1555: 72case PixelFormat.PAlpha: 73case PixelFormat.Format32bppPArgb: 74case PixelFormat.Extended: 75case PixelFormat.Format16bppGrayScale: 76case PixelFormat.Format48bppRgb: 77case PixelFormat.Format64bppPArgb: 78case PixelFormat.Canonical: 79case PixelFormat.Format32bppArgb: 80case PixelFormat.Format64bppArgb: 83throw 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)
573if (bmpData.PixelFormat is not PixelFormat.Format32bppArgb and not PixelFormat.Format32bppRgb) 631result = new Bitmap(_imageSize.Width, _imageSize.Height, PixelFormat.Format32bppArgb); 632targetData = result.LockBits(new Rectangle(0, 0, _imageSize.Width, _imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
919using 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)
295PixelFormat.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)
120s_boxImage = new Bitmap(s_boxImageSize, s_boxImageSize, PixelFormat.Format32bppPArgb); 392PixelFormat.Format32bppPArgb); 425PixelFormat.Format32bppPArgb); 671BitmapData data = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
System\Windows\Forms\Design\ImageListImage.cs (1)
42public PixelFormat PixelFormat => Image.PixelFormat;