61 references to PixelFormat
System.Drawing (52)
commonui\System\Drawing\Advanced\BitmapData.cs (25)
62public PixelFormat PixelFormat { 63get { return (PixelFormat) pixelFormat; } 67case PixelFormat.DontCare: 69case PixelFormat.Max: 70case PixelFormat.Indexed: 71case PixelFormat.Gdi: 72case PixelFormat.Format16bppRgb555: 73case PixelFormat.Format16bppRgb565: 74case PixelFormat.Format24bppRgb: 75case PixelFormat.Format32bppRgb: 76case PixelFormat.Format1bppIndexed: 77case PixelFormat.Format4bppIndexed: 78case PixelFormat.Format8bppIndexed: 79case PixelFormat.Alpha: 80case PixelFormat.Format16bppArgb1555: 81case PixelFormat.PAlpha: 82case PixelFormat.Format32bppPArgb: 83case PixelFormat.Extended: 84case PixelFormat.Format16bppGrayScale: 85case PixelFormat.Format48bppRgb: 86case PixelFormat.Format64bppPArgb: 87case PixelFormat.Canonical: 88case PixelFormat.Format32bppArgb: 89case PixelFormat.Format64bppArgb: 92throw new System.ComponentModel.InvalidEnumArgumentException("value", unchecked((int)value), typeof(PixelFormat));
commonui\System\Drawing\Advanced\Gdiplus.cs (1)
1874PixelFormat format, // PixelFormat
commonui\System\Drawing\Bitmap.cs (11)
239public Bitmap(int width, int height, int stride, PixelFormat format, IntPtr scan0) { 261public Bitmap(int width, int height, PixelFormat format) { 280public Bitmap(int width, int height) : this(width, height, System.Drawing.Imaging.PixelFormat.Format32bppArgb) { 482/// Bitmap defined by <paramref term="rect"/> with a specified <see cref='System.Drawing.Imaging.PixelFormat'/>. 487public Bitmap Clone(Rectangle rect, PixelFormat format) { 515/// Bitmap defined by <paramref term="rect"/> with a specified <see cref='System.Drawing.Imaging.PixelFormat'/>. 521public Bitmap Clone(RectangleF rect, PixelFormat format) { 584result = new Bitmap(size.Width, size.Height, PixelFormat.Format32bppArgb); 628public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format) { 642public BitmapData LockBits(Rectangle rect, ImageLockMode flags, PixelFormat format, BitmapData bitmapData) 703if ((PixelFormat & PixelFormat.Indexed) != 0) {
commonui\System\Drawing\Graphics.cs (1)
232if ((image.PixelFormat & PixelFormat.Indexed) != 0) {
commonui\System\Drawing\Icon.cs (4)
966bitmap = new Bitmap(Size.Width, Size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); 973System.Drawing.Imaging.PixelFormat.Format32bppArgb); 1027bitmap = new Bitmap(bmpData.Width, bmpData.Height, PixelFormat.Format32bppArgb); 1028targetData = bitmap.LockBits(new Rectangle(0, 0, bmpData.Width, bmpData.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
commonui\System\Drawing\Image.cs (10)
945public PixelFormat PixelFormat { 952return PixelFormat.Undefined; 954return(PixelFormat)format; 1356public static int GetPixelFormatSize(PixelFormat pixfmt) { 1370public static bool IsAlphaPixelFormat(PixelFormat pixfmt) { 1371return(pixfmt & PixelFormat.Alpha) != 0; 1384public static bool IsExtendedPixelFormat(PixelFormat pixfmt) { 1385return(pixfmt & PixelFormat.Extended) != 0; 1401public static bool IsCanonicalPixelFormat(PixelFormat pixfmt) { 1402return(pixfmt & PixelFormat.Canonical) != 0;
System.Windows.Forms (6)
winforms\Managed\System\WinForms\ControlPaint.cs (1)
269PixelFormat.Format32bppArgb);
winforms\Managed\System\WinForms\ImageList.cs (4)
662if(bmpData.PixelFormat != PixelFormat.Format32bppArgb && bmpData.PixelFormat != PixelFormat.Format32bppRgb) { 725result = new Bitmap(imageSize.Width, imageSize.Height, PixelFormat.Format32bppArgb); 726targetData = result.LockBits(new Rectangle(0, 0, imageSize.Width, imageSize.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (1)
937using (Bitmap textBmp = new Bitmap(textSize.Width, textSize.Height,PixelFormat.Format32bppPArgb)) {
System.Workflow.ComponentModel (3)
AuthoringOM\Design\ActivityDesigner.cs (2)
1060Bitmap designerImage = new Bitmap(Size.Width + (4 * ambientTheme.Margin.Width), Size.Height + (4 * ambientTheme.Margin.Height), PixelFormat.Format32bppArgb); 1978using (Bitmap temporaryBitmap = new Bitmap(designerTheme.Size.Width, designerTheme.Size.Height, PixelFormat.Format32bppArgb))
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
679draggedImage = new Bitmap(draggedImageSize.Width, draggedImageSize.Height, PixelFormat.Format32bppArgb);