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