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