16 types derived from BitmapSource
PresentationCore (16)
System\Windows\Media\Imaging\BitmapFrame.cs (1)
38
public abstract class BitmapFrame :
BitmapSource
, IUriContext
System\Windows\Media\Imaging\BitmapImage.cs (1)
37
public sealed partial class BitmapImage : Imaging.
BitmapSource
, ISupportInitialize, IUriContext
System\Windows\Media\Imaging\CachedBitmap.cs (1)
36
public sealed class CachedBitmap : System.Windows.Media.Imaging.
BitmapSource
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (1)
34
public sealed partial class ColorConvertedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
34
public sealed partial class CroppedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
35
public sealed partial class FormatConvertedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
35
sealed partial class BitmapImage :
BitmapSource
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
35
sealed partial class ColorConvertedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
35
sealed partial class CroppedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
35
sealed partial class FormatConvertedBitmap :
BitmapSource
System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
35
sealed partial class TransformedBitmap :
BitmapSource
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
36
public sealed class InteropBitmap :
BitmapSource
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
34
public sealed class RenderTargetBitmap : System.Windows.Media.Imaging.
BitmapSource
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
34
public sealed partial class TransformedBitmap : Imaging.
BitmapSource
, ISupportInitialize
System\Windows\Media\Imaging\UnmanagedBitmapWrapper.cs (1)
32
internal sealed class UnmanagedBitmapWrapper :
BitmapSource
System\Windows\Media\Imaging\WriteableBitmap.cs (1)
35
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)
210
public static
BitmapSource
GetImage()
212
return GetDataInternal(DataFormats.Bitmap) as
BitmapSource
;
317
public static void SetImage(
BitmapSource
image)
System\Windows\dataobject.cs (11)
424
public
BitmapSource
GetImage()
426
return GetData(DataFormats.Bitmap, /*autoConvert*/true) as
BitmapSource
;
514
public void SetImage(
BitmapSource
image)
1523
else if (IsFormatEqual(format, typeof(
BitmapSource
).FullName))
1756
BitmapSource
bitmapSource;
1764
bitmapSource = (
BitmapSource
)data;
2065
if (data is System.Windows.Media.Imaging.
BitmapSource
)
2806
else if (IsFormatEqual(format, typeof(
BitmapSource
).FullName))
3108
private
BitmapSource
ReadBitmapSourceFromHandle(IntPtr handle)
3111
BitmapSource
bitmapSource;
3122
bitmapSource = (
BitmapSource
)BitmapFrame.Create(bitmapStream);
System\Windows\InterOp\D3DImage.cs (3)
527
protected internal virtual
BitmapSource
CopyBackBuffer()
530
BitmapSource
copy = null;
918
private
BitmapSource
_softwareCopy;
System\Windows\InterOp\Imaging.cs (4)
35
unsafe public static
BitmapSource
CreateBitmapSourceFromHBitmap(
53
unsafe internal static
BitmapSource
CriticalCreateBitmapSourceFromHBitmap(
77
unsafe public static
BitmapSource
CreateBitmapSourceFromHIcon(
103
unsafe public static
BitmapSource
CreateBitmapSourceFromMemorySection(
System\Windows\Media\Effects\BitmapEffect.cs (1)
110
public
BitmapSource
GetOutput(BitmapEffectInput input)
System\Windows\Media\Effects\BitmapEffectInput.cs (4)
30
private static
BitmapSource
s_defaultInputSource;
42
public BitmapEffectInput(
BitmapSource
input)
60
public static
BitmapSource
ContextInputSource
66
BitmapSource
source = new UnmanagedBitmapWrapper(true);
System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (4)
96
public
BitmapSource
Input
100
return (
BitmapSource
) GetValue(InputProperty);
228
internal static
BitmapSource
s_Input = BitmapEffectInput.ContextInputSource;
258
typeof(
BitmapSource
),
System\Windows\Media\Imaging\BitmapDecoder.cs (6)
581
public virtual
BitmapSource
Thumbnail
621
BitmapSource
.CreateCachedBitmap(
735
public virtual
BitmapSource
Preview
775
BitmapSource
.CreateCachedBitmap(
1641
private
BitmapSource
_thumbnail = null;
1650
private
BitmapSource
_preview = null;
System\Windows\Media\Imaging\BitmapEncoder.cs (5)
163
public virtual
BitmapSource
Thumbnail
224
public virtual
BitmapSource
Preview
634
BitmapSource
thumbnail = frame.Thumbnail;
835
private
BitmapSource
_thumbnail;
838
private
BitmapSource
_preview;
System\Windows\Media\Imaging\BitmapFrame.cs (7)
238
BitmapSource
source
269
BitmapSource
source,
270
BitmapSource
thumbnail
305
BitmapSource
source,
306
BitmapSource
thumbnail,
332
public abstract
BitmapSource
Thumbnail { get; }
372
internal
BitmapSource
_thumbnail = null;
System\Windows\Media\Imaging\BitmapFrameDecode.cs (3)
133
BitmapSource
source =
BitmapSource
.Create(
196
public override
BitmapSource
Thumbnail
System\Windows\Media\Imaging\BitmapFrameEncode.cs (4)
40
BitmapSource
source,
41
BitmapSource
thumbnail,
98
public override
BitmapSource
Thumbnail
277
private
BitmapSource
_source;
System\Windows\Media\Imaging\BitmapImage.cs (3)
391
BitmapSource
source = frame;
528
PixelFormat duceFormat =
BitmapSource
.GetClosestDUCEFormat(source.Format, source.Palette);
941
private
BitmapSource
_finalSource;
System\Windows\Media\Imaging\BitmapPalette.cs (2)
80
public BitmapPalette(
BitmapSource
bitmapSource, int maxColorCount)
163
static internal BitmapPalette CreateFromBitmapSource(
BitmapSource
source)
System\Windows\Media\Imaging\BitmapSource.cs (36)
51
public static
BitmapSource
Create(
85
unsafe public static
BitmapSource
Create(
134
public new
BitmapSource
Clone()
136
return (
BitmapSource
)base.Clone();
143
public new
BitmapSource
CloneCurrentValue()
145
return (
BitmapSource
)base.CloneCurrentValue();
588
typeof(System.Windows.Media.Imaging.
BitmapSource
.IWICBitmapSource)));
1118
destFmt =
BitmapSource
.GetClosestDUCEFormat(originalFmt, palette);
1366
internal void RegisterDownloadEventSource(
BitmapSource
eventSource)
1455
private void CopyCommon(
BitmapSource
sourceBitmap)
1528
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1539
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1550
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1561
BitmapSource
sourceBitmap = (
BitmapSource
)sourceFreezable;
1737
private WeakReference<
BitmapSource
> _bitmapSource;
1739
public ManagedBitmapSource(
BitmapSource
bitmapSource)
1742
_bitmapSource = new WeakReference<
BitmapSource
>(bitmapSource);
1747
BitmapSource
bitmapSource;
1764
BitmapSource
bitmapSource;
1779
BitmapSource
bitmapSource;
1796
BitmapSource
bitmapSource;
1826
BitmapSource
bitmapSource;
1914
public WeakBitmapSourceEventSink(
BitmapSource
bitmapSource)
1921
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1934
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1947
BitmapSource
bitmapSource = this.Target as
BitmapSource
;
1958
public void DetachSourceDownloadHandlers(
BitmapSource
source)
1978
private
BitmapSource
_eventSource;
1979
public
BitmapSource
EventSource
System\Windows\Media\Imaging\CachedBitmap.cs (2)
44
public CachedBitmap(
BitmapSource
source, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption)
474
BitmapSource
_source;
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (4)
50
public ColorConvertedBitmap(
BitmapSource
source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
145
BitmapSource
newSource = e.NewValue as
BitmapSource
;
283
private
BitmapSource
_source;
System\Windows\Media\Imaging\CroppedBitmap.cs (5)
48
public CroppedBitmap(
BitmapSource
source, Int32Rect sourceRect)
104
BitmapSource
source = Source;
164
BitmapSource
newSource = e.NewValue as
BitmapSource
;
230
private
BitmapSource
_source;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
51
public FormatConvertedBitmap(
BitmapSource
source, PixelFormat destinationFormat, BitmapPalette destinationPalette, double alphaThreshold)
179
BitmapSource
newSource = e.NewValue as
BitmapSource
;
338
private
BitmapSource
_source;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
135
public
BitmapSource
Source
139
return (
BitmapSource
) GetValue(SourceProperty);
353
internal static
BitmapSource
s_Source = null;
384
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (4)
117
public
BitmapSource
Source
121
return (
BitmapSource
) GetValue(SourceProperty);
297
internal static
BitmapSource
s_Source = null;
327
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
135
public
BitmapSource
Source
139
return (
BitmapSource
) GetValue(SourceProperty);
353
internal static
BitmapSource
s_Source = null;
385
typeof(
BitmapSource
),
System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (4)
135
public
BitmapSource
Source
139
return (
BitmapSource
) GetValue(SourceProperty);
315
internal static
BitmapSource
s_Source = null;
349
typeof(
BitmapSource
),
System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (2)
136
public override
BitmapSource
Thumbnail
220
public override
BitmapSource
Preview
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
126
BitmapSourceSafeMILHandle newBitmapHandle =
BitmapSource
.CreateCachedBitmap(
System\Windows\Media\Imaging\TransformedBitmap.cs (4)
49
public TransformedBitmap(
BitmapSource
source, Transform newTransform)
284
BitmapSource
newSource = e.NewValue as
BitmapSource
;
369
private
BitmapSource
_source;
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
54
BitmapSource
source
735
BitmapSource
source
PresentationFramework (45)
MS\Internal\AppModel\IconHelper.cs (2)
130
private static
BitmapSource
GenerateBitmapSource(ImageSource img, Size renderSize)
176
BitmapSource
bitmapSource = sourceBitmapFrame;
System\Windows\ColorConvertedBitmapExtension.cs (1)
120
BitmapSource
bitmap = decoder.Frames[0];
System\Windows\Controls\Image.cs (22)
367
private
BitmapSource
_bitmapSource;
438
private void AttachBitmapSourceEvents(
BitmapSource
bitmapSource)
470
BitmapSource
newBitmapSource = newValue as
BitmapSource
;
546
public static void AddHandler(
BitmapSource
source, EventHandler<EventArgs> handler)
556
public static void RemoveHandler(
BitmapSource
source, EventHandler<EventArgs> handler)
584
BitmapSource
typedSource = (
BitmapSource
)source;
593
BitmapSource
typedSource = (
BitmapSource
)source;
670
public static void AddHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
680
public static void RemoveHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
708
BitmapSource
typedSource = (
BitmapSource
)source;
717
BitmapSource
typedSource = (
BitmapSource
)source;
794
public static void AddHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
804
public static void RemoveHandler(
BitmapSource
source, EventHandler<ExceptionEventArgs> handler)
832
BitmapSource
typedSource = (
BitmapSource
)source;
841
BitmapSource
typedSource = (
BitmapSource
)source;
System\Windows\Documents\RubberbandSelector.cs (1)
196
private
BitmapSource
GetImage()
System\windows\Documents\TextEditorCopyPaste.cs (4)
139
if (image != null && image.Source is System.Windows.Media.Imaging.
BitmapSource
)
141
dataObject.SetImage((System.Windows.Media.Imaging.
BitmapSource
)image.Source);
692
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = GetPasteData(dataObjectToApply, DataFormats.Bitmap) as System.Windows.Media.Imaging.
BitmapSource
;
System\Windows\Documents\TextRange.cs (2)
1042
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = (System.Windows.Media.Imaging.
BitmapSource
)image.Source;
System\Windows\Documents\WpfPayload.cs (7)
244
internal static MemoryStream SaveImage(
BitmapSource
bitmapSource, string imageContentType)
414
private
BitmapSource
GetBitmapSourceFromImage(Image image)
416
if (image.Source is
BitmapSource
)
418
return (
BitmapSource
)image.Source;
454
private void CreateImagePart(PackagePart sourcePart,
BitmapSource
imageSource, string imageContentType, int imageIndex)
628
private static bool ImagesAreIdentical(
BitmapSource
imageSource1,
BitmapSource
imageSource2)
System\Windows\Documents\XamlToRtfWriter.cs (2)
2055
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = (System.Windows.Media.Imaging.
BitmapSource
)System.Windows.Media.Imaging.BitmapFrame.Create(imageStream);
System\Windows\Interop\HwndHost.cs (1)
790
System.Windows.Media.Imaging.
BitmapSource
bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
131
case 35: t = () => typeof(
BitmapSource
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2035
typeof(System.Windows.Media.Imaging.
BitmapSource
),
System\Windows\Markup\KnownTypes.cs (1)
5589
case KnownElements.BitmapSource: t = typeof(System.Windows.Media.Imaging.
BitmapSource
); break;
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
136
BitmapSource
bitmapSource = data as
BitmapSource
;
162
BitmapSource
contentImage = (
BitmapSource
)source;
ReachFramework (64)
AlphaFlattener\BrushProxy.cs (9)
655
_image = new ImageProxy((
BitmapSource
)ib.ImageSource);
767
_image = new ImageProxy((
BitmapSource
)ib.ImageSource);
929
public
BitmapSource
CreateBrushImage_ID(Matrix mat, int width, int height)
958
BitmapSource
brushImage = CreateBrushImage_ID(mat, width, height);
1770
ImageProxy image = new ImageProxy((
BitmapSource
)ib.ImageSource);
2322
BitmapSource
bs = (
BitmapSource
)(ib.ImageSource);
3172
BitmapSource
bitmapSource = ib.ImageSource as
BitmapSource
;
AlphaFlattener\DrawingContext.cs (2)
613
BitmapSource
id = brush.CreateBrushImage_ID(mat, width, height);
865
BitmapSource
clippedImageSource = image.GetClippedImage(imageClip.Bounds, out clippedImageBounds);
AlphaFlattener\Flattener.cs (2)
1399
void ILegacyDevice.DrawImage(
BitmapSource
source, Byte[] buffer, Rect rc)
1403
source =
BitmapSource
.Create(source.PixelWidth, source.PixelHeight,
AlphaFlattener\ImageProxy.cs (9)
57
protected
BitmapSource
_image;
61
public ImageProxy(
BitmapSource
image)
71
public
BitmapSource
Image
325
internal static int HasAlpha(
BitmapSource
bitmap)
422
public
BitmapSource
GetImage()
430
return
BitmapSource
.Create(_pixelWidth, _pixelHeight, _image.DpiX, _image.DpiY, PixelFormats.Pbgra32, null, _pixels, _pixelWidth * 4);
451
public
BitmapSource
GetClippedImage(Rect bounds, out Rect clipBounds)
453
BitmapSource
result = null; // default to entire image clipped away
511
result =
BitmapSource
.Create(
AlphaFlattener\MetroDevice.cs (1)
259
g.Image = new ImageProxy((
BitmapSource
)image);
AlphaFlattener\Primitive.cs (3)
442
BitmapSource
bs = (
BitmapSource
)id.ImageSource;
497
BitmapSource
bitmap = Utility.RasterizeDrawing(
AlphaFlattener\PrimitiveRenderer.cs (1)
483
BitmapSource
clippedImage = ip.Image.GetClippedImage(drawBounds, out drawBounds);
AlphaFlattener\Utility.cs (8)
1435
internal static bool NeedPremultiplyAlpha(
BitmapSource
bitmapSource)
1487
BitmapSource
bs = ib.ImageSource as
BitmapSource
;
1902
private static
BitmapSource
RasterizeVisual(
1961
public RenderedVisualBand(
BitmapSource
bitmap, Matrix bitmapToVisualTransform)
1970
public
BitmapSource
Bitmap;
1986
public static
BitmapSource
RasterizeVisual(
2027
public static
BitmapSource
RasterizeDrawing(
Serialization\DrawingContextFlattener.cs (2)
295
if (image is
BitmapSource
)
419
BitmapSource
bitmap;
Serialization\ImageSourceTypeConverter.cs (7)
168
BitmapSource
bitmapSource = (
BitmapSource
)value;
225
XpsResourceStream resourceStream = manager.AcquireResourceStream(typeof(
BitmapSource
), imageMimeType);
267
manager.ReleaseResourceStream(typeof(
BitmapSource
));
349
ReEncodeImage(
BitmapSource
bitmapSource, BitmapEncoder encoder, Stream stream )
389
BitmapSource
bitmapSource
442
GetBitmapSourceFromImageTable(PackageSerializationManager manager,
BitmapSource
bitmapSource)
Serialization\Manager\XpsOMSerializationManager.cs (4)
221
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObject.GetType()))
253
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObjectType))
425
else if (resourceType == typeof(
BitmapSource
))
459
else if (resourceType == typeof(
BitmapSource
))
Serialization\Manager\XpsSerializationManager.cs (6)
382
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObject.GetType()))
414
if (typeof(
BitmapSource
).IsAssignableFrom(serializedObjectType))
614
else if (resourceType == typeof(
BitmapSource
))
651
else if (resourceType == typeof(
BitmapSource
))
685
else if (resourceType == typeof(
BitmapSource
))
718
else if (resourceType == typeof(
BitmapSource
))
Serialization\VisualSerializer.cs (3)
617
TypeConverter converter = _manager.GetTypeConverter(typeof(
BitmapSource
));
1946
Brush brush = new ImageBrush((
BitmapSource
)image);
2000
BitmapSource
bitmap = Utility.RasterizeDrawing(
Serialization\VisualTreeFlattener.cs (3)
121
if (Microsoft.Internal.AlphaFlattener.Utility.NeedPremultiplyAlpha(value as
BitmapSource
))
141
encoder.Frames.Add(BitmapFrame.Create((
BitmapSource
)value));
251
else if (typeof(
BitmapSource
).IsAssignableFrom(objType))
Serialization\XpsImageSerializationService.cs (4)
45
BitmapSource
bitmapSource
112
BitmapSource
bitmapSource
179
BitmapSource
bitmapSource
198
BitmapSource
bitmapSource
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (1)
227
private static
BitmapSource
GenerateBitmapSource(ImageSource img, Size renderSize)