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