89 references to PixelFormats
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
NavigateTo\AbstractNavigateToTests.cs (2)
217var stride = PixelFormats.Bgr32.BitsPerPixel / 8 * 16; 218return BitmapSource.Create(16, 16, 96, 96, PixelFormats.Bgr32, null, new byte[16 * stride], stride);
PresentationCore (61)
System\Windows\Media\Color.cs (4)
431c2.context = new ColorContext(PixelFormats.Bgra32); 550c2.context = new ColorContext(PixelFormats.Bgra32); 1097c2.context = new ColorContext(PixelFormats.Bgra32); 1117ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));
System\Windows\Media\ColorTransform.cs (2)
49srcContext = new ColorContext(PixelFormats.Bgra32); 54dstContext = new ColorContext(PixelFormats.Bgra32);
System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
138PixelFormats.Pbgra32,
System\Windows\Media\Imaging\BitmapSource.cs (23)
1000WicSourceHandle = Create(1, 1, 96, 96, PixelFormats.Pbgra32, null, pixels, 4).WicSourceHandle; 1051return PixelFormats.Indexed1; 1055return PixelFormats.Indexed2; 1059return PixelFormats.Indexed4; 1063return PixelFormats.Indexed8; 1067return PixelFormats.Bgr555; 1071return PixelFormats.Pbgra32; 1075return PixelFormats.Bgr32; 1101PixelFormat originalFmt = PixelFormats.Pbgra32; 1595internal PixelFormat _format = PixelFormats.Default; 1638PixelFormats.Indexed1, 1639PixelFormats.BlackWhite, 1640PixelFormats.Indexed2, 1641PixelFormats.Gray2, 1642PixelFormats.Indexed4, 1643PixelFormats.Gray4, 1644PixelFormats.Indexed8, 1645PixelFormats.Gray8, 1646PixelFormats.Bgr555, 1647PixelFormats.Bgr565, 1648PixelFormats.Bgr32, 1649PixelFormats.Bgra32, 1650PixelFormats.Pbgra32
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (2)
356internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 413PixelFormats.Pbgra32,
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (2)
354internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 396PixelFormats.Pbgra32,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
54pixelFormat = PixelFormats.Pbgra32;
System\Windows\Media\PixelFormat.cs (26)
715return PixelFormats.Indexed1; 718return PixelFormats.Indexed2; 721return PixelFormats.Indexed4; 724return PixelFormats.Indexed8; 727return PixelFormats.BlackWhite; 730return PixelFormats.Gray2; 733return PixelFormats.Gray4; 736return PixelFormats.Gray8; 739return PixelFormats.Bgr555; 742return PixelFormats.Bgr565; 745return PixelFormats.Bgr101010; 748return PixelFormats.Bgr24; 751return PixelFormats.Rgb24; 754return PixelFormats.Bgr32; 757return PixelFormats.Bgra32; 760return PixelFormats.Pbgra32; 763return PixelFormats.Rgb48; 766return PixelFormats.Rgba64; 769return PixelFormats.Prgba64; 772return PixelFormats.Gray16; 775return PixelFormats.Gray32Float; 778return PixelFormats.Rgb128Float; 781return PixelFormats.Rgba128Float; 784return PixelFormats.Prgba128Float; 787return PixelFormats.Cmyk32; 790return PixelFormats.Default;
PresentationFramework (12)
MS\Internal\AppModel\IconHelper.cs (4)
163var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32); 178if (bitmapSource.Format != PixelFormats.Bgra32 && bitmapSource.Format != PixelFormats.Pbgra32) 180bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
MS\Internal\Ink\PenCursorManager.cs (2)
292PixelFormats.Pbgra32); 312converter.DestinationFormat = PixelFormats.Bgra32;
System\Windows\ColorConvertedBitmapExtension.cs (3)
112new ColorContext(PixelFormats.Default); 121FormatConvertedBitmap formatConverted = new FormatConvertedBitmap(bitmap, PixelFormats.Bgra32, null, 0.0); 127ColorConvertedBitmap colorConverted = new ColorConvertedBitmap(formatConverted, sourceContext, destinationContext, PixelFormats.Bgra32);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
971RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0, PixelFormats.Pbgra32);
System\Windows\Documents\RubberbandSelector.cs (1)
204RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi, PixelFormats.Pbgra32);
System\Windows\Documents\WpfPayload.cs (1)
42596.0, 96.0, PixelFormats.Default);
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
179formatConverter.DestinationFormat = System.Windows.Media.PixelFormats.Bgr32;
ReachFramework (11)
AlphaFlattener\BrushProxy.cs (2)
933RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32); 980converter.DestinationFormat = PixelFormats.Pbgra32;
AlphaFlattener\Flattener.cs (1)
140496, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (3)
149converter.DestinationFormat = PixelFormats.Pbgra32; 430return BitmapSource.Create(_pixelWidth, _pixelHeight, _image.DpiX, _image.DpiY, PixelFormats.Pbgra32, null, _pixels, _pixelWidth * 4); 514PixelFormats.Pbgra32,
AlphaFlattener\Optimizer.cs (1)
58RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32);
AlphaFlattener\Utility.cs (2)
1437if ((bitmapSource != null) && (bitmapSource.Format == PixelFormats.Pbgra32)) 1925PixelFormats.Pbgra32
Serialization\ImageSourceTypeConverter.cs (1)
365bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
Serialization\VisualSerializer.cs (1)
666if (new ColorContext(PixelFormats.Default) != colorConvertedBitmap.DestinationColorContext)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (1)
260var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
321PixelFormats.Pbgra32);