90 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)
420
c2.context = new ColorContext(
PixelFormats
.Bgra32);
537
c2.context = new ColorContext(
PixelFormats
.Bgra32);
1081
c2.context = new ColorContext(
PixelFormats
.Bgra32);
1101
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)
118
PixelFormats
.Pbgra32,
System\Windows\Media\Imaging\BitmapSource.cs (23)
955
WicSourceHandle = Create(1, 1, 96, 96,
PixelFormats
.Pbgra32, null, pixels, 4).WicSourceHandle;
1006
return
PixelFormats
.Indexed1;
1010
return
PixelFormats
.Indexed2;
1014
return
PixelFormats
.Indexed4;
1018
return
PixelFormats
.Indexed8;
1022
return
PixelFormats
.Bgr555;
1026
return
PixelFormats
.Pbgra32;
1030
return
PixelFormats
.Bgr32;
1056
PixelFormat originalFmt =
PixelFormats
.Pbgra32;
1550
internal PixelFormat _format =
PixelFormats
.Default;
1593
PixelFormats
.Indexed1,
1594
PixelFormats
.BlackWhite,
1595
PixelFormats
.Indexed2,
1596
PixelFormats
.Gray2,
1597
PixelFormats
.Indexed4,
1598
PixelFormats
.Gray4,
1599
PixelFormats
.Indexed8,
1600
PixelFormats
.Gray8,
1601
PixelFormats
.Bgr555,
1602
PixelFormats
.Bgr565,
1603
PixelFormats
.Bgr32,
1604
PixelFormats
.Bgra32,
1605
PixelFormats
.Pbgra32
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (2)
342
internal static PixelFormat s_DestinationFormat =
PixelFormats
.Pbgra32;
399
PixelFormats
.Pbgra32,
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (2)
340
internal static PixelFormat s_DestinationFormat =
PixelFormats
.Pbgra32;
381
PixelFormats
.Pbgra32,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
35
pixelFormat =
PixelFormats
.Pbgra32;
System\Windows\Media\PixelFormat.cs (26)
533
PixelFormatEnum.Indexed1 =>
PixelFormats
.Indexed1,
534
PixelFormatEnum.Indexed2 =>
PixelFormats
.Indexed2,
535
PixelFormatEnum.Indexed4 =>
PixelFormats
.Indexed4,
536
PixelFormatEnum.Indexed8 =>
PixelFormats
.Indexed8,
537
PixelFormatEnum.BlackWhite =>
PixelFormats
.BlackWhite,
538
PixelFormatEnum.Gray2 =>
PixelFormats
.Gray2,
539
PixelFormatEnum.Gray4 =>
PixelFormats
.Gray4,
540
PixelFormatEnum.Gray8 =>
PixelFormats
.Gray8,
541
PixelFormatEnum.Bgr555 =>
PixelFormats
.Bgr555,
542
PixelFormatEnum.Bgr565 =>
PixelFormats
.Bgr565,
543
PixelFormatEnum.Bgr101010 =>
PixelFormats
.Bgr101010,
544
PixelFormatEnum.Bgr24 =>
PixelFormats
.Bgr24,
545
PixelFormatEnum.Rgb24 =>
PixelFormats
.Rgb24,
546
PixelFormatEnum.Bgr32 =>
PixelFormats
.Bgr32,
547
PixelFormatEnum.Bgra32 =>
PixelFormats
.Bgra32,
548
PixelFormatEnum.Pbgra32 =>
PixelFormats
.Pbgra32,
549
PixelFormatEnum.Rgb48 =>
PixelFormats
.Rgb48,
550
PixelFormatEnum.Rgba64 =>
PixelFormats
.Rgba64,
551
PixelFormatEnum.Prgba64 =>
PixelFormats
.Prgba64,
552
PixelFormatEnum.Gray16 =>
PixelFormats
.Gray16,
553
PixelFormatEnum.Gray32Float =>
PixelFormats
.Gray32Float,
554
PixelFormatEnum.Rgb128Float =>
PixelFormats
.Rgb128Float,
555
PixelFormatEnum.Rgba128Float =>
PixelFormats
.Rgba128Float,
556
PixelFormatEnum.Prgba128Float =>
PixelFormats
.Prgba128Float,
557
PixelFormatEnum.Cmyk32 =>
PixelFormats
.Cmyk32,
558
_ =>
PixelFormats
.Default,
PresentationCore.Tests (1)
System\Windows\ClipboardTests.cs (1)
173
WriteableBitmap bitmap = new(10, 10, 96, 96,
PixelFormats
.Bgra32, palette: null);
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)
286
PixelFormats
.Pbgra32);
306
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)
965
RenderTargetBitmap renderTargetBitmap = new RenderTargetBitmap((int)pageVisualRect.Width, (int)pageVisualRect.Height, 96.0, 96.0,
PixelFormats
.Pbgra32);
System\Windows\Documents\RubberbandSelector.cs (1)
191
RenderTargetBitmap data = new RenderTargetBitmap((int)(scale * _selectionRect.Width), (int)(scale * _selectionRect.Height),dpi,dpi,
PixelFormats
.Pbgra32);
System\Windows\Documents\WpfPayload.cs (1)
421
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)
927
RenderTargetBitmap brushImage = new RenderTargetBitmap(width, height, 96, 96,
PixelFormats
.Pbgra32);
974
converter.DestinationFormat =
PixelFormats
.Pbgra32;
AlphaFlattener\Flattener.cs (1)
1402
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))
1915
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);