16 types derived from BitmapSource
PresentationCore (16)
System\Windows\Media\Imaging\BitmapFrame.cs (1)
17
public abstract class BitmapFrame :
BitmapSource
, IUriContext
System\Windows\Media\Imaging\BitmapImage.cs (1)
19
public sealed partial class BitmapImage : Imaging.
BitmapSource
, ISupportInitialize, IUriContext
System\Windows\Media\Imaging\CachedBitmap.cs (1)
15
public sealed class CachedBitmap : System.Windows.Media.Imaging.
BitmapSource
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (1)
15
public sealed partial class ColorConvertedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
15
public sealed partial class CroppedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
16
public sealed partial class FormatConvertedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
19
sealed partial class BitmapImage :
BitmapSource
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
16
sealed partial class ColorConvertedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
16
sealed partial class CroppedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
16
sealed partial class FormatConvertedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
16
sealed partial class TransformedBitmap :
BitmapSource
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
22
public sealed class InteropBitmap :
BitmapSource
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
15
public sealed class RenderTargetBitmap : System.Windows.Media.Imaging.
BitmapSource
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
15
public sealed partial class TransformedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\UnmanagedBitmapWrapper.cs (1)
10
internal sealed class UnmanagedBitmapWrapper :
BitmapSource
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
18
public sealed class WriteableBitmap :
BitmapSource
252 references to BitmapSource
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
NavigateTo\AbstractNavigateToTests.cs (2)
215
internal static
BitmapSource
CreateIconBitmapSource()
218
return
BitmapSource
.Create(16, 16, 96, 96, PixelFormats.Bgr32, null, new byte[16 * stride], stride);
PresentationCore (136)
System\Windows\clipboard.cs (3)
202
public static
BitmapSource
GetImage()
204
return GetDataInternal(DataFormats.Bitmap) as
BitmapSource
;
309
public static void SetImage(
BitmapSource
image)
System\Windows\dataobject.cs (11)
411
public
BitmapSource
GetImage()
413
return GetData(DataFormats.Bitmap, /*autoConvert*/true) as
BitmapSource
;
501
public void SetImage(
BitmapSource
image)
1504
else if (IsFormatEqual(format, typeof(
BitmapSource
).FullName))
1737
BitmapSource
bitmapSource;
1745
bitmapSource = (
BitmapSource
)data;
2022
if (data is System.Windows.Media.Imaging.
BitmapSource
)
2752
else if (IsFormatEqual(format, typeof(
BitmapSource
).FullName))
3055
private
BitmapSource
ReadBitmapSourceFromHandle(IntPtr handle)
3058
BitmapSource
bitmapSource;
3069
bitmapSource = (
BitmapSource
)BitmapFrame.Create(bitmapStream);
System\Windows\InterOp\D3DImage.cs (3)
515
protected internal virtual
BitmapSource
CopyBackBuffer()
518
BitmapSource
copy = null;
900
private
BitmapSource
_softwareCopy;
System\Windows\InterOp\Imaging.cs (4)
28
unsafe public static
BitmapSource
CreateBitmapSourceFromHBitmap(
46
unsafe internal static
BitmapSource
CriticalCreateBitmapSourceFromHBitmap(
70
unsafe public static
BitmapSource
CreateBitmapSourceFromHIcon(
96
unsafe public static
BitmapSource
CreateBitmapSourceFromMemorySection(
System\Windows\Media\Effects\BitmapEffect.cs (1)
91
public
BitmapSource
GetOutput(BitmapEffectInput input)
System\Windows\Media\Effects\BitmapEffectInput.cs (4)
17
private static
BitmapSource
s_defaultInputSource;
29
public BitmapEffectInput(
BitmapSource
input)
47
public static
BitmapSource
ContextInputSource
53
BitmapSource
source = new UnmanagedBitmapWrapper(true);
System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (4)
71
public
BitmapSource
Input
75
return (
BitmapSource
) GetValue(InputProperty);
203
internal static
BitmapSource
s_Input = BitmapEffectInput.ContextInputSource;
233
typeof(
BitmapSource
),
System\Windows\Media\Imaging\BitmapDecoder.cs (6)
561
public virtual
BitmapSource
Thumbnail
601
BitmapSource
.CreateCachedBitmap(
715
public virtual
BitmapSource
Preview
755
BitmapSource
.CreateCachedBitmap(
1616
private
BitmapSource
_thumbnail = null;
1625
private
BitmapSource
_preview = null;
System\Windows\Media\Imaging\BitmapEncoder.cs (5)
145
public virtual
BitmapSource
Thumbnail
206
public virtual
BitmapSource
Preview
616
BitmapSource
thumbnail = frame.Thumbnail;
817
private
BitmapSource
_thumbnail;
820
private
BitmapSource
_preview;
System\Windows\Media\Imaging\BitmapFrame.cs (7)
217
BitmapSource
source
248
BitmapSource
source,
249
BitmapSource
thumbnail
284
BitmapSource
source,
285
BitmapSource
thumbnail,
311
public abstract
BitmapSource
Thumbnail { get; }
351
internal
BitmapSource
_thumbnail = null;
System\Windows\Media\Imaging\BitmapFrameDecode.cs (3)
113
BitmapSource
source =
BitmapSource
.Create(
176
public override
BitmapSource
Thumbnail
System\Windows\Media\Imaging\BitmapFrameEncode.cs (4)
25
BitmapSource
source,
26
BitmapSource
thumbnail,
83
public override
BitmapSource
Thumbnail
262
private
BitmapSource
_source;
System\Windows\Media\Imaging\BitmapImage.cs (3)
373
BitmapSource
source = frame;
510
PixelFormat duceFormat =
BitmapSource
.GetClosestDUCEFormat(source.Format, source.Palette);
923
private
BitmapSource
_finalSource;
System\Windows\Media\Imaging\BitmapPalette.cs (2)
63
public BitmapPalette(
BitmapSource
bitmapSource, int maxColorCount)
146
static internal BitmapPalette CreateFromBitmapSource(
BitmapSource
source)
System\Windows\Media\Imaging\BitmapSource.cs (36)
36
public static
BitmapSource
Create(
70
unsafe public static
BitmapSource
Create(
119
public new
BitmapSource
Clone()
121
return (
BitmapSource
)base.Clone();
128
public new
BitmapSource
CloneCurrentValue()
130
return (
BitmapSource
)base.CloneCurrentValue();
573
typeof(System.Windows.Media.Imaging.
BitmapSource
.IWICBitmapSource)));
1103
destFmt =
BitmapSource
.GetClosestDUCEFormat(originalFmt, palette);
1351
internal void RegisterDownloadEventSource(
BitmapSource
eventSource)
1440
private void CopyCommon(
BitmapSource
sourceBitmap)
1513
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1524
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1535
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1546
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1722
private WeakReference<
BitmapSource
> _bitmapSource;
1724
public ManagedBitmapSource(
BitmapSource
bitmapSource)
1727
_bitmapSource = new WeakReference<
BitmapSource
>(bitmapSource);
1732
BitmapSource
bitmapSource;
1749
BitmapSource
bitmapSource;
1764
BitmapSource
bitmapSource;
1781
BitmapSource
bitmapSource;
1811
BitmapSource
bitmapSource;
1899
public WeakBitmapSourceEventSink(
BitmapSource
bitmapSource)
1906
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1919
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1932
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1943
public void DetachSourceDownloadHandlers(
BitmapSource
source)
1963
private
BitmapSource
_eventSource;
1964
public
BitmapSource
EventSource
System\Windows\Media\Imaging\CachedBitmap.cs (2)
23
public CachedBitmap(
BitmapSource
source, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption)
453
BitmapSource
_source;
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (4)
31
public ColorConvertedBitmap(
BitmapSource
source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
126
BitmapSource
newSource = e.NewValue as
BitmapSource
;
264
private
BitmapSource
_source;
System\Windows\Media\Imaging\CroppedBitmap.cs (5)
29
public CroppedBitmap(
BitmapSource
source, Int32Rect sourceRect)
85
BitmapSource
source = Source;
145
BitmapSource
newSource = e.NewValue as
BitmapSource
;
211
private
BitmapSource
_source;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
32
public FormatConvertedBitmap(
BitmapSource
source, PixelFormat destinationFormat, BitmapPalette destinationPalette, double alphaThreshold)
160
BitmapSource
newSource = e.NewValue as
BitmapSource
;
319
private
BitmapSource
_source;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
116
public
BitmapSource
Source
120
return (
BitmapSource
) GetValue(SourceProperty);
334
internal static
BitmapSource
s_Source = null;
365
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (4)
98
public
BitmapSource
Source
102
return (
BitmapSource
) GetValue(SourceProperty);
278
internal static
BitmapSource
s_Source = null;
308
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
116
public
BitmapSource
Source
120
return (
BitmapSource
) GetValue(SourceProperty);
334
internal static
BitmapSource
s_Source = null;
366
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (4)
116
public
BitmapSource
Source
120
return (
BitmapSource
) GetValue(SourceProperty);
296
internal static
BitmapSource
s_Source = null;
330
typeof(
BitmapSource
),
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (2)
112
public override
BitmapSource
Thumbnail
196
public override
BitmapSource
Preview
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
107
BitmapSourceSafeMILHandle newBitmapHandle =
BitmapSource
.CreateCachedBitmap(
System\Windows\Media\Imaging\TransformedBitmap.cs (4)
30
public TransformedBitmap(
BitmapSource
source, Transform newTransform)
265
BitmapSource
newSource = e.NewValue as
BitmapSource
;
350
private
BitmapSource
_source;
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
37
BitmapSource
source
718
BitmapSource
source
PresentationFramework (45)
MS\Internal\AppModel\IconHelper.cs (2)
122
private static
BitmapSource
GenerateBitmapSource(ImageSource img, Size renderSize)
168
BitmapSource
bitmapSource = sourceBitmapFrame;
System\Windows\ColorConvertedBitmapExtension.cs (1)
113
BitmapSource
bitmap = decoder.Frames[0];
System\Windows\Controls\Image.cs (22)
359
private
BitmapSource
_bitmapSource;
430
private void AttachBitmapSourceEvents(
BitmapSource
bitmapSource)
462
BitmapSource
newBitmapSource = newValue as
BitmapSource
;
538
public static void AddHandler(
BitmapSource
source, EventHandler<EventArgs> handler)
548
public static void RemoveHandler(
BitmapSource
source, EventHandler<EventArgs> handler)
576
BitmapSource
typedSource = (
BitmapSource
)source;
585
BitmapSource
typedSource = (
BitmapSource
)source;
662
public static void AddHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
672
public static void RemoveHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
700
BitmapSource
typedSource = (
BitmapSource
)source;
709
BitmapSource
typedSource = (
BitmapSource
)source;
786
public static void AddHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
796
public static void RemoveHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
824
BitmapSource
typedSource = (
BitmapSource
)source;
833
BitmapSource
typedSource = (
BitmapSource
)source;
System\Windows\Documents\RubberbandSelector.cs (1)
186
private
BitmapSource
GetImage()
System\windows\Documents\TextEditorCopyPaste.cs (4)
126
if (image != null && image.Source is System.Windows.Media.Imaging.
BitmapSource
)
128
dataObject.SetImage((System.Windows.Media.Imaging.
BitmapSource
)image.Source);
681
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = GetPasteData(dataObjectToApply, DataFormats.Bitmap) as System.Windows.Media.Imaging.
BitmapSource
;
System\Windows\Documents\TextRange.cs (2)
1031
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = (System.Windows.Media.Imaging.
BitmapSource
)image.Source;
System\Windows\Documents\WpfPayload.cs (7)
238
internal static MemoryStream SaveImage(
BitmapSource
bitmapSource, string imageContentType)
410
private
BitmapSource
GetBitmapSourceFromImage(Image image)
412
if (image.Source is
BitmapSource
)
414
return (
BitmapSource
)image.Source;
450
private void CreateImagePart(PackagePart sourcePart,
BitmapSource
imageSource, string imageContentType, int imageIndex)
624
private static bool ImagesAreIdentical(
BitmapSource
imageSource1,
BitmapSource
imageSource2)
System\Windows\Documents\XamlToRtfWriter.cs (2)
2054
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = (System.Windows.Media.Imaging.
BitmapSource
)System.Windows.Media.Imaging.BitmapFrame.Create(imageStream);
System\Windows\Interop\HwndHost.cs (1)
784
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
129
case 35: t = () => typeof(
BitmapSource
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2079
typeof(System.Windows.Media.Imaging.
BitmapSource
),
System\Windows\Markup\KnownTypes.cs (1)
5583
case KnownElements.BitmapSource: t = typeof(System.Windows.Media.Imaging.
BitmapSource
); break;
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
133
BitmapSource
bitmapSource = data as
BitmapSource
;
159
BitmapSource
contentImage = (
BitmapSource
)source;
ReachFramework (64)
AlphaFlattener\BrushProxy.cs (9)
652
_image = new ImageProxy((
BitmapSource
)ib.ImageSource);
764
_image = new ImageProxy((
BitmapSource
)ib.ImageSource);
926
public
BitmapSource
CreateBrushImage_ID(Matrix mat, int width, int height)
955
BitmapSource
brushImage = CreateBrushImage_ID(mat, width, height);
1768
ImageProxy image = new ImageProxy((
BitmapSource
)ib.ImageSource);
2320
BitmapSource
bs = (
BitmapSource
)(ib.ImageSource);
3174
BitmapSource
bitmapSource = ib.ImageSource as
BitmapSource
;
AlphaFlattener\DrawingContext.cs (2)
611
BitmapSource
id = brush.CreateBrushImage_ID(mat, width, height);
863
BitmapSource
clippedImageSource = image.GetClippedImage(imageClip.Bounds, out clippedImageBounds);
AlphaFlattener\Flattener.cs (2)
1403
void ILegacyDevice.DrawImage(
BitmapSource
source, Byte[] buffer, Rect rc)
1407
source =
BitmapSource
.Create(source.PixelWidth, source.PixelHeight,
AlphaFlattener\ImageProxy.cs (9)
50
protected
BitmapSource
_image;
54
public ImageProxy(
BitmapSource
image)
64
public
BitmapSource
Image
318
internal static int HasAlpha(
BitmapSource
bitmap)
415
public
BitmapSource
GetImage()
423
return
BitmapSource
.Create(_pixelWidth, _pixelHeight, _image.DpiX, _image.DpiY, PixelFormats.Pbgra32, null, _pixels, _pixelWidth * 4);
444
public
BitmapSource
GetClippedImage(Rect bounds, out Rect clipBounds)
446
BitmapSource
result = null; // default to entire image clipped away
504
result =
BitmapSource
.Create(
AlphaFlattener\MetroDevice.cs (1)
254
Image = new ImageProxy((
BitmapSource
)image),
AlphaFlattener\Primitive.cs (3)
440
BitmapSource
bs = (
BitmapSource
)id.ImageSource;
495
BitmapSource
bitmap = Utility.RasterizeDrawing(
AlphaFlattener\PrimitiveRenderer.cs (1)
479
BitmapSource
clippedImage = ip.Image.GetClippedImage(drawBounds, out drawBounds);
AlphaFlattener\Utility.cs (8)
1424
internal static bool NeedPremultiplyAlpha(
BitmapSource
bitmapSource)
1476
BitmapSource
bs = ib.ImageSource as
BitmapSource
;
1892
private static
BitmapSource
RasterizeVisual(
1951
public RenderedVisualBand(
BitmapSource
bitmap, Matrix bitmapToVisualTransform)
1960
public
BitmapSource
Bitmap;
1976
public static
BitmapSource
RasterizeVisual(
2017
public static
BitmapSource
RasterizeDrawing(
Serialization\DrawingContextFlattener.cs (2)
285
if (image is
BitmapSource
)
409
BitmapSource
bitmap;
Serialization\ImageSourceTypeConverter.cs (7)
160
BitmapSource
bitmapSource = (
BitmapSource
)value;
217
XpsResourceStream resourceStream = manager.AcquireResourceStream(typeof(
BitmapSource
), imageMimeType);
259
manager.ReleaseResourceStream(typeof(
BitmapSource
));
341
ReEncodeImage(
BitmapSource
bitmapSource, BitmapEncoder encoder, Stream stream )
381
BitmapSource
bitmapSource
434
GetBitmapSourceFromImageTable(PackageSerializationManager manager,
BitmapSource
bitmapSource)
Serialization\Manager\XpsOMSerializationManager.cs (4)
210
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObject.GetType()))
242
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObjectType))
414
else if (resourceType == typeof(
BitmapSource
))
448
else if (resourceType == typeof(
BitmapSource
))
Serialization\Manager\XpsSerializationManager.cs (6)
365
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObject.GetType()))
397
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObjectType))
597
else if (resourceType == typeof(
BitmapSource
))
634
else if (resourceType == typeof(
BitmapSource
))
668
else if (resourceType == typeof(
BitmapSource
))
701
else if (resourceType == typeof(
BitmapSource
))
Serialization\VisualSerializer.cs (3)
609
TypeConverter converter = _manager.GetTypeConverter(typeof(
BitmapSource
));
1939
Brush brush = new ImageBrush((
BitmapSource
)image);
1993
BitmapSource
bitmap = Utility.RasterizeDrawing(
Serialization\VisualTreeFlattener.cs (3)
114
if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(value as
BitmapSource
))
134
encoder.Frames.Add(BitmapFrame.Create((
BitmapSource
)value));
244
else if (typeof(
BitmapSource
).IsAssignableFrom(objType))
Serialization\XpsImageSerializationService.cs (4)
42
BitmapSource
bitmapSource
109
BitmapSource
bitmapSource
176
BitmapSource
bitmapSource
195
BitmapSource
bitmapSource
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (1)
225
private static
BitmapSource
GenerateBitmapSource(ImageSource img, Size renderSize)