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)
423c2.context = new ColorContext(PixelFormats.Bgra32); 542c2.context = new ColorContext(PixelFormats.Bgra32); 1089c2.context = new ColorContext(PixelFormats.Bgra32); 1109ColorTransform colorTransform = new ColorTransform(this.context, new ColorContext(PixelFormats.Bgra32));
System\Windows\Media\ColorTransform.cs (2)
27srcContext = new ColorContext(PixelFormats.Bgra32); 32dstContext = new ColorContext(PixelFormats.Bgra32);
System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
123PixelFormats.Pbgra32,
System\Windows\Media\Imaging\BitmapSource.cs (23)
985WicSourceHandle = Create(1, 1, 96, 96, PixelFormats.Pbgra32, null, pixels, 4).WicSourceHandle; 1036return PixelFormats.Indexed1; 1040return PixelFormats.Indexed2; 1044return PixelFormats.Indexed4; 1048return PixelFormats.Indexed8; 1052return PixelFormats.Bgr555; 1056return PixelFormats.Pbgra32; 1060return PixelFormats.Bgr32; 1086PixelFormat originalFmt = PixelFormats.Pbgra32; 1580internal PixelFormat _format = PixelFormats.Default; 1623PixelFormats.Indexed1, 1624PixelFormats.BlackWhite, 1625PixelFormats.Indexed2, 1626PixelFormats.Gray2, 1627PixelFormats.Indexed4, 1628PixelFormats.Gray4, 1629PixelFormats.Indexed8, 1630PixelFormats.Gray8, 1631PixelFormats.Bgr555, 1632PixelFormats.Bgr565, 1633PixelFormats.Bgr32, 1634PixelFormats.Bgra32, 1635PixelFormats.Pbgra32
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (2)
337internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 394PixelFormats.Pbgra32,
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (2)
335internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 377PixelFormats.Pbgra32,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
35pixelFormat = PixelFormats.Pbgra32;
System\Windows\Media\PixelFormat.cs (26)
701return PixelFormats.Indexed1; 704return PixelFormats.Indexed2; 707return PixelFormats.Indexed4; 710return PixelFormats.Indexed8; 713return PixelFormats.BlackWhite; 716return PixelFormats.Gray2; 719return PixelFormats.Gray4; 722return PixelFormats.Gray8; 725return PixelFormats.Bgr555; 728return PixelFormats.Bgr565; 731return PixelFormats.Bgr101010; 734return PixelFormats.Bgr24; 737return PixelFormats.Rgb24; 740return PixelFormats.Bgr32; 743return PixelFormats.Bgra32; 746return PixelFormats.Pbgra32; 749return PixelFormats.Rgb48; 752return PixelFormats.Rgba64; 755return PixelFormats.Prgba64; 758return PixelFormats.Gray16; 761return PixelFormats.Gray32Float; 764return PixelFormats.Rgb128Float; 767return PixelFormats.Rgba128Float; 770return PixelFormats.Prgba128Float; 773return PixelFormats.Cmyk32; 776return PixelFormats.Default;
PresentationFramework (12)
MS\Internal\AppModel\IconHelper.cs (4)
155var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32); 170if (bitmapSource.Format != PixelFormats.Bgra32 && bitmapSource.Format != PixelFormats.Pbgra32) 172bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
MS\Internal\Ink\PenCursorManager.cs (2)
287PixelFormats.Pbgra32); 307converter.DestinationFormat = PixelFormats.Bgra32;
System\Windows\ColorConvertedBitmapExtension.cs (3)
105new ColorContext(PixelFormats.Default); 114FormatConvertedBitmap formatConverted = new FormatConvertedBitmap(bitmap, PixelFormats.Bgra32, null, 0.0); 120ColorConvertedBitmap colorConverted = new ColorConvertedBitmap(formatConverted, sourceContext, destinationContext, PixelFormats.Bgra32);
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
967RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0, PixelFormats.Pbgra32);
System\Windows\Documents\RubberbandSelector.cs (1)
194RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi, PixelFormats.Pbgra32);
System\Windows\Documents\WpfPayload.cs (1)
41996.0, 96.0, PixelFormats.Default);
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
176formatConverter.DestinationFormat = System.Windows.Media.PixelFormats.Bgr32;
ReachFramework (11)
AlphaFlattener\BrushProxy.cs (2)
929RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32); 976converter.DestinationFormat = PixelFormats.Pbgra32;
AlphaFlattener\Flattener.cs (1)
139996, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (3)
142converter.DestinationFormat = PixelFormats.Pbgra32; 423return BitmapSource.Create(_pixelWidth, _pixelHeight, _image.DpiX, _image.DpiY, PixelFormats.Pbgra32, null, _pixels, _pixelWidth * 4); 507PixelFormats.Pbgra32,
AlphaFlattener\Optimizer.cs (1)
54RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32);
AlphaFlattener\Utility.cs (2)
1426if ((bitmapSource != null) && (bitmapSource.Format == PixelFormats.Pbgra32)) 1914PixelFormats.Pbgra32
Serialization\ImageSourceTypeConverter.cs (1)
357bitmapSource = new FormatConvertedBitmap(bitmapSource, PixelFormats.Bgra32, null, 0.0);
Serialization\VisualSerializer.cs (1)
658if (new ColorContext(PixelFormats.Default) != colorConvertedBitmap.DestinationColorContext)
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (1)
258var bmp = new RenderTargetBitmap((int)renderSize.Width, (int)renderSize.Height, 96, 96, PixelFormats.Pbgra32);
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
317PixelFormats.Pbgra32);