97 references to PixelFormats
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
NavigateTo\AbstractNavigateToTests.cs (2)
216var stride = PixelFormats.Bgr32.BitsPerPixel / 8 * 16; 217return BitmapSource.Create(16, 16, 96, 96, PixelFormats.Bgr32, null, new byte[16 * stride], stride);
PresentationCore (61)
System\Windows\Media\Color.cs (4)
419c2.context = new ColorContext(PixelFormats.Bgra32); 536c2.context = new ColorContext(PixelFormats.Bgra32); 1080c2.context = new ColorContext(PixelFormats.Bgra32); 1100ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));
System\Windows\Media\ColorTransform.cs (2)
26srcContext = new ColorContext(PixelFormats.Bgra32); 31dstContext = new ColorContext(PixelFormats.Bgra32);
System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
117PixelFormats.Pbgra32,
System\Windows\Media\Imaging\BitmapSource.cs (23)
954WicSourceHandle = Create(1, 1, 96, 96, PixelFormats.Pbgra32, null, pixels, 4).WicSourceHandle; 1005return PixelFormats.Indexed1; 1009return PixelFormats.Indexed2; 1013return PixelFormats.Indexed4; 1017return PixelFormats.Indexed8; 1021return PixelFormats.Bgr555; 1025return PixelFormats.Pbgra32; 1029return PixelFormats.Bgr32; 1055PixelFormat originalFmt = PixelFormats.Pbgra32; 1549internal PixelFormat _format = PixelFormats.Default; 1592PixelFormats.Indexed1, 1593PixelFormats.BlackWhite, 1594PixelFormats.Indexed2, 1595PixelFormats.Gray2, 1596PixelFormats.Indexed4, 1597PixelFormats.Gray4, 1598PixelFormats.Indexed8, 1599PixelFormats.Gray8, 1600PixelFormats.Bgr555, 1601PixelFormats.Bgr565, 1602PixelFormats.Bgr32, 1603PixelFormats.Bgra32, 1604PixelFormats.Pbgra32
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (2)
339internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 396PixelFormats.Pbgra32,
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (2)
337internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 378PixelFormats.Pbgra32,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
34pixelFormat = PixelFormats.Pbgra32;
System\Windows\Media\PixelFormat.cs (26)
532PixelFormatEnum.Indexed1 => PixelFormats.Indexed1, 533PixelFormatEnum.Indexed2 => PixelFormats.Indexed2, 534PixelFormatEnum.Indexed4 => PixelFormats.Indexed4, 535PixelFormatEnum.Indexed8 => PixelFormats.Indexed8, 536PixelFormatEnum.BlackWhite => PixelFormats.BlackWhite, 537PixelFormatEnum.Gray2 => PixelFormats.Gray2, 538PixelFormatEnum.Gray4 => PixelFormats.Gray4, 539PixelFormatEnum.Gray8 => PixelFormats.Gray8, 540PixelFormatEnum.Bgr555 => PixelFormats.Bgr555, 541PixelFormatEnum.Bgr565 => PixelFormats.Bgr565, 542PixelFormatEnum.Bgr101010 => PixelFormats.Bgr101010, 543PixelFormatEnum.Bgr24 => PixelFormats.Bgr24, 544PixelFormatEnum.Rgb24 => PixelFormats.Rgb24, 545PixelFormatEnum.Bgr32 => PixelFormats.Bgr32, 546PixelFormatEnum.Bgra32 => PixelFormats.Bgra32, 547PixelFormatEnum.Pbgra32 => PixelFormats.Pbgra32, 548PixelFormatEnum.Rgb48 => PixelFormats.Rgb48, 549PixelFormatEnum.Rgba64 => PixelFormats.Rgba64, 550PixelFormatEnum.Prgba64 => PixelFormats.Prgba64, 551PixelFormatEnum.Gray16 => PixelFormats.Gray16, 552PixelFormatEnum.Gray32Float => PixelFormats.Gray32Float, 553PixelFormatEnum.Rgb128Float => PixelFormats.Rgb128Float, 554PixelFormatEnum.Rgba128Float => PixelFormats.Rgba128Float, 555PixelFormatEnum.Prgba128Float => PixelFormats.Prgba128Float, 556PixelFormatEnum.Cmyk32 => PixelFormats.Cmyk32, 557_ => PixelFormats.Default,
PresentationCore.Tests (8)
System\Windows\ClipboardTests.cs (1)
184WriteableBitmap bitmap = new(10, 10, 96, 96, PixelFormats.Bgra32, palette: null);
System\Windows\Media\Imaging\WriteableBitmap.Tests.cs (7)
26WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null); 35Assert.Equal(PixelFormats.Pbgra32, writeableBitmap.Format); 56WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null); 97WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null); 138WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null); 162WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null); 182WriteableBitmap writeableBitmap = new(width, height, dpiX, dpiY, PixelFormats.Pbgra32, null);
PresentationFramework (12)
MS\Internal\AppModel\IconHelper.cs (4)
154var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32); 169if (bitmapSource.Format != PixelFormats.Bgra32 && bitmapSource.Format != PixelFormats.Pbgra32) 171bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
MS\Internal\Ink\PenCursorManager.cs (2)
285PixelFormats.Pbgra32); 305converter.DestinationFormat = PixelFormats.Bgra32;
System\Windows\ColorConvertedBitmapExtension.cs (3)
104new ColorContext(PixelFormats.Default); 113FormatConvertedBitmap formatConverted = new FormatConvertedBitmap(bitmap, PixelFormats.Bgra32, null, 0.0); 119ColorConvertedBitmap colorConverted = new ColorConvertedBitmap(formatConverted, sourceContext, destinationContext, PixelFormats.Bgra32);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
964RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0, PixelFormats.Pbgra32);
System\Windows\Documents\RubberbandSelector.cs (1)
190RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi, PixelFormats.Pbgra32);
System\Windows\Documents\WpfPayload.cs (1)
42096.0, 96.0, PixelFormats.Default);
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
135formatConverter.DestinationFormat = System.Windows.Media.PixelFormats.Bgr32;
ReachFramework (11)
AlphaFlattener\BrushProxy.cs (2)
926RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32); 973converter.DestinationFormat = PixelFormats.Pbgra32;
AlphaFlattener\Flattener.cs (1)
140196, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (3)
141converter.DestinationFormat = PixelFormats.Pbgra32; 422return BitmapSource.Create(_pixelWidth, _pixelHeight, _image.DpiX, _image.DpiY, PixelFormats.Pbgra32, null, _pixels, _pixelWidth * 4); 506PixelFormats.Pbgra32,
AlphaFlattener\Optimizer.cs (1)
53RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32);
AlphaFlattener\Utility.cs (2)
1425if ((bitmapSource != null) && (bitmapSource.Format == PixelFormats.Pbgra32)) 1914PixelFormats.Pbgra32
Serialization\ImageSourceTypeConverter.cs (1)
356bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
Serialization\VisualSerializer.cs (1)
657if (new ColorContext(PixelFormats.Default) != colorConvertedBitmap.DestinationColorContext)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (1)
257var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
316PixelFormats.Pbgra32);