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)
420c2.context = new ColorContext(PixelFormats.Bgra32); 537c2.context = new ColorContext(PixelFormats.Bgra32); 1081c2.context = new ColorContext(PixelFormats.Bgra32); 1101ColorTransform 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)
118PixelFormats.Pbgra32,
System\Windows\Media\Imaging\BitmapSource.cs (23)
984WicSourceHandle = Create(1, 1, 96, 96, PixelFormats.Pbgra32, null, pixels, 4).WicSourceHandle; 1035return PixelFormats.Indexed1; 1039return PixelFormats.Indexed2; 1043return PixelFormats.Indexed4; 1047return PixelFormats.Indexed8; 1051return PixelFormats.Bgr555; 1055return PixelFormats.Pbgra32; 1059return PixelFormats.Bgr32; 1085PixelFormat originalFmt = PixelFormats.Pbgra32; 1579internal PixelFormat _format = PixelFormats.Default; 1622PixelFormats.Indexed1, 1623PixelFormats.BlackWhite, 1624PixelFormats.Indexed2, 1625PixelFormats.Gray2, 1626PixelFormats.Indexed4, 1627PixelFormats.Gray4, 1628PixelFormats.Indexed8, 1629PixelFormats.Gray8, 1630PixelFormats.Bgr555, 1631PixelFormats.Bgr565, 1632PixelFormats.Bgr32, 1633PixelFormats.Bgra32, 1634PixelFormats.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)
533PixelFormatEnum.Indexed1 => PixelFormats.Indexed1, 534PixelFormatEnum.Indexed2 => PixelFormats.Indexed2, 535PixelFormatEnum.Indexed4 => PixelFormats.Indexed4, 536PixelFormatEnum.Indexed8 => PixelFormats.Indexed8, 537PixelFormatEnum.BlackWhite => PixelFormats.BlackWhite, 538PixelFormatEnum.Gray2 => PixelFormats.Gray2, 539PixelFormatEnum.Gray4 => PixelFormats.Gray4, 540PixelFormatEnum.Gray8 => PixelFormats.Gray8, 541PixelFormatEnum.Bgr555 => PixelFormats.Bgr555, 542PixelFormatEnum.Bgr565 => PixelFormats.Bgr565, 543PixelFormatEnum.Bgr101010 => PixelFormats.Bgr101010, 544PixelFormatEnum.Bgr24 => PixelFormats.Bgr24, 545PixelFormatEnum.Rgb24 => PixelFormats.Rgb24, 546PixelFormatEnum.Bgr32 => PixelFormats.Bgr32, 547PixelFormatEnum.Bgra32 => PixelFormats.Bgra32, 548PixelFormatEnum.Pbgra32 => PixelFormats.Pbgra32, 549PixelFormatEnum.Rgb48 => PixelFormats.Rgb48, 550PixelFormatEnum.Rgba64 => PixelFormats.Rgba64, 551PixelFormatEnum.Prgba64 => PixelFormats.Prgba64, 552PixelFormatEnum.Gray16 => PixelFormats.Gray16, 553PixelFormatEnum.Gray32Float => PixelFormats.Gray32Float, 554PixelFormatEnum.Rgb128Float => PixelFormats.Rgb128Float, 555PixelFormatEnum.Rgba128Float => PixelFormats.Rgba128Float, 556PixelFormatEnum.Prgba128Float => PixelFormats.Prgba128Float, 557PixelFormatEnum.Cmyk32 => PixelFormats.Cmyk32, 558_ => 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)
286PixelFormats.Pbgra32); 306converter.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)
965RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0, PixelFormats.Pbgra32);
System\Windows\Documents\RubberbandSelector.cs (1)
191RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi, PixelFormats.Pbgra32);
System\Windows\Documents\WpfPayload.cs (1)
42196.0, 96.0, PixelFormats.Default);
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
176formatConverter.DestinationFormat = System.Windows.Media.PixelFormats.Bgr32;
ReachFramework (11)
AlphaFlattener\BrushProxy.cs (2)
927RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96, PixelFormats.Pbgra32); 974converter.DestinationFormat = PixelFormats.Pbgra32;
AlphaFlattener\Flattener.cs (1)
140296, 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)) 1915PixelFormats.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);