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