16 types derived from BitmapSource
PresentationCore (16)
Core\CSharp\System\Windows\Media\Imaging\BitmapFrame.cs (1)
41public abstract class BitmapFrame : BitmapSource, IUriContext
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (1)
40public sealed partial class BitmapImage : Imaging.BitmapSource, ISupportInitialize, IUriContext
Core\CSharp\System\Windows\Media\Imaging\CachedBitmap.cs (1)
39public sealed class CachedBitmap : System.Windows.Media.Imaging.BitmapSource
Core\CSharp\System\Windows\Media\Imaging\ColorConvertedBitmap.cs (1)
37public sealed partial class ColorConvertedBitmap : Imaging.BitmapSource, ISupportInitialize
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (1)
37public sealed partial class CroppedBitmap : Imaging.BitmapSource, ISupportInitialize
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
38public sealed partial class FormatConvertedBitmap : Imaging.BitmapSource, ISupportInitialize
Core\CSharp\System\Windows\Media\Imaging\Generated\BitmapImage.cs (1)
39sealed partial class BitmapImage : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (1)
39sealed partial class ColorConvertedBitmap : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (1)
39sealed partial class CroppedBitmap : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (1)
39sealed partial class FormatConvertedBitmap : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (1)
39sealed partial class TransformedBitmap : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
39public sealed class InteropBitmap : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
37public sealed class RenderTargetBitmap : System.Windows.Media.Imaging.BitmapSource
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (1)
37public sealed partial class TransformedBitmap : Imaging.BitmapSource, ISupportInitialize
Core\CSharp\System\Windows\Media\Imaging\UnmanagedBitmapWrapper.cs (1)
34internal sealed class UnmanagedBitmapWrapper : BitmapSource
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (1)
37public sealed class WriteableBitmap : BitmapSource
187 references to BitmapSource
PresentationCore (136)
Core\CSharp\System\Windows\Clipboard.cs (3)
230public static BitmapSource GetImage() 232return GetDataInternal(DataFormats.Bitmap) as BitmapSource; 352public static void SetImage(BitmapSource image)
Core\CSharp\System\Windows\DataObject.cs (11)
548public BitmapSource GetImage() 550return GetData(DataFormats.Bitmap, /*autoConvert*/true) as BitmapSource; 647public void SetImage(BitmapSource image) 1828else if (IsFormatEqual(format, typeof(BitmapSource).FullName)) 2069BitmapSource bitmapSource; 2077bitmapSource = (BitmapSource)data; 2385if (data is System.Windows.Media.Imaging.BitmapSource) 3189else if (IsFormatEqual(format, typeof(BitmapSource).FullName)) 3482private BitmapSource ReadBitmapSourceFromHandle(IntPtr handle) 3485BitmapSource bitmapSource; 3496bitmapSource = (BitmapSource)BitmapFrame.Create(bitmapStream);
Core\CSharp\System\Windows\Interop\D3DImage.cs (3)
577protected internal virtual BitmapSource CopyBackBuffer() 581BitmapSource copy = null; 999private BitmapSource _softwareCopy;
Core\CSharp\System\Windows\Interop\Imaging.cs (4)
41unsafe public static BitmapSource CreateBitmapSourceFromHBitmap( 65unsafe internal static BitmapSource CriticalCreateBitmapSourceFromHBitmap( 94unsafe public static BitmapSource CreateBitmapSourceFromHIcon( 126unsafe public static BitmapSource CreateBitmapSourceFromMemorySection(
Core\CSharp\System\Windows\Media\Effects\BitmapEffect.cs (1)
155public BitmapSource GetOutput(BitmapEffectInput input)
Core\CSharp\System\Windows\Media\Effects\BitmapEffectInput.cs (4)
31private static BitmapSource s_defaultInputSource; 43public BitmapEffectInput(BitmapSource input) 61public static BitmapSource ContextInputSource 67BitmapSource source = new UnmanagedBitmapWrapper(true);
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectInput.cs (4)
102public BitmapSource Input 106return (BitmapSource) GetValue(InputProperty); 234internal static BitmapSource s_Input = BitmapEffectInput.ContextInputSource; 265typeof(BitmapSource),
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (6)
641public virtual BitmapSource Thumbnail 682BitmapSource.CreateCachedBitmap( 816public virtual BitmapSource Preview 857BitmapSource.CreateCachedBitmap( 1930private BitmapSource _thumbnail = null; 1939private BitmapSource _preview = null;
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (5)
183public virtual BitmapSource Thumbnail 250public virtual BitmapSource Preview 693BitmapSource thumbnail = frame.Thumbnail; 894private BitmapSource _thumbnail; 897private BitmapSource _preview;
Core\CSharp\System\Windows\Media\Imaging\BitmapFrame.cs (7)
254BitmapSource source 288BitmapSource source, 289BitmapSource thumbnail 327BitmapSource source, 328BitmapSource thumbnail, 357public abstract BitmapSource Thumbnail { get; } 397internal BitmapSource _thumbnail = null;
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (3)
146BitmapSource source = BitmapSource.Create( 209public override BitmapSource Thumbnail
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameEncode.cs (4)
48BitmapSource source, 49BitmapSource thumbnail, 106public override BitmapSource Thumbnail 296private BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (3)
403BitmapSource source = frame; 540PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.Format, source.Palette); 953private BitmapSource _finalSource;
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (2)
91public BitmapPalette(BitmapSource bitmapSource, int maxColorCount) 188static internal BitmapPalette CreateFromBitmapSource(BitmapSource source)
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (36)
55public static BitmapSource Create( 94unsafe public static BitmapSource Create( 154public new BitmapSource Clone() 156return (BitmapSource)base.Clone(); 163public new BitmapSource CloneCurrentValue() 165return (BitmapSource)base.CloneCurrentValue(); 637typeof(System.Windows.Media.Imaging.BitmapSource.IWICBitmapSource))); 1219destFmt = BitmapSource.GetClosestDUCEFormat(originalFmt, palette); 1468internal void RegisterDownloadEventSource(BitmapSource eventSource) 1562private void CopyCommon(BitmapSource sourceBitmap) 1635BitmapSource sourceBitmap = (BitmapSource)sourceFreezable; 1646BitmapSource sourceBitmap = (BitmapSource)sourceFreezable; 1657BitmapSource sourceBitmap = (BitmapSource)sourceFreezable; 1668BitmapSource sourceBitmap = (BitmapSource)sourceFreezable; 1852private WeakReference<BitmapSource> _bitmapSource; 1854public ManagedBitmapSource(BitmapSource bitmapSource) 1860_bitmapSource = new WeakReference<BitmapSource>(bitmapSource); 1865BitmapSource bitmapSource; 1882BitmapSource bitmapSource; 1897BitmapSource bitmapSource; 1918BitmapSource bitmapSource; 1952BitmapSource bitmapSource; 2040public WeakBitmapSourceEventSink(BitmapSource bitmapSource) 2047BitmapSource bitmapSource = this.Target as BitmapSource; 2060BitmapSource bitmapSource = this.Target as BitmapSource; 2073BitmapSource bitmapSource = this.Target as BitmapSource; 2084public void DetachSourceDownloadHandlers(BitmapSource source) 2104private BitmapSource _eventSource; 2105public BitmapSource EventSource
Core\CSharp\System\Windows\Media\Imaging\CachedBitmap.cs (2)
47public CachedBitmap(BitmapSource source, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption) 544BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\ColorConvertedBitmap.cs (4)
53public ColorConvertedBitmap(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format) 166BitmapSource newSource = e.NewValue as BitmapSource; 305private BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (5)
51public CroppedBitmap(BitmapSource source, Int32Rect sourceRect) 119BitmapSource source = Source; 179BitmapSource newSource = e.NewValue as BitmapSource; 245private BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
54public FormatConvertedBitmap(BitmapSource source, PixelFormat destinationFormat, BitmapPalette destinationPalette, double alphaThreshold) 194BitmapSource newSource = e.NewValue as BitmapSource; 353private BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
140public BitmapSource Source 144return (BitmapSource) GetValue(SourceProperty); 358internal static BitmapSource s_Source = null; 390typeof(BitmapSource),
Core\CSharp\System\Windows\Media\Imaging\Generated\CroppedBitmap.cs (4)
122public BitmapSource Source 126return (BitmapSource) GetValue(SourceProperty); 302internal static BitmapSource s_Source = null; 332typeof(BitmapSource),
Core\CSharp\System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
140public BitmapSource Source 144return (BitmapSource) GetValue(SourceProperty); 358internal static BitmapSource s_Source = null; 390typeof(BitmapSource),
Core\CSharp\System\Windows\Media\Imaging\Generated\TransformedBitmap.cs (4)
141public BitmapSource Source 145return (BitmapSource) GetValue(SourceProperty); 321internal static BitmapSource s_Source = null; 355typeof(BitmapSource),
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (2)
158public override BitmapSource Thumbnail 256public override BitmapSource Preview
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
146BitmapSourceSafeMILHandle newBitmapHandle = BitmapSource.CreateCachedBitmap(
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (4)
52public TransformedBitmap(BitmapSource source, Transform newTransform) 299BitmapSource newSource = e.NewValue as BitmapSource; 384private BitmapSource _source;
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (2)
61BitmapSource source 834BitmapSource source
PresentationFramework (45)
src\Framework\MS\Internal\AppModel\IconHelper.cs (2)
155private static BitmapSource GenerateBitmapSource(ImageSource img, Size renderSize) 207BitmapSource bitmapSource = sourceBitmapFrame;
src\Framework\System\Windows\ColorConvertedBitmapExtension.cs (1)
121BitmapSource bitmap = decoder.Frames[0];
src\Framework\System\Windows\Controls\Image.cs (22)
372private BitmapSource _bitmapSource; 443private void AttachBitmapSourceEvents(BitmapSource bitmapSource) 475BitmapSource newBitmapSource = newValue as BitmapSource; 556public static void AddHandler(BitmapSource source, EventHandler<EventArgs> handler) 567public static void RemoveHandler(BitmapSource source, EventHandler<EventArgs> handler) 596BitmapSource typedSource = (BitmapSource)source; 605BitmapSource typedSource = (BitmapSource)source; 682public static void AddHandler(BitmapSource source, EventHandler<ExceptionEventArgs> handler) 693public static void RemoveHandler(BitmapSource source, EventHandler<ExceptionEventArgs> handler) 722BitmapSource typedSource = (BitmapSource)source; 731BitmapSource typedSource = (BitmapSource)source; 808public static void AddHandler(BitmapSource source, EventHandler<ExceptionEventArgs> handler) 819public static void RemoveHandler(BitmapSource source, EventHandler<ExceptionEventArgs> handler) 848BitmapSource typedSource = (BitmapSource)source; 857BitmapSource typedSource = (BitmapSource)source;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
293private BitmapSource GetImage()
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (4)
177if (image != null && image.Source is System.Windows.Media.Imaging.BitmapSource) 179dataObject.SetImage((System.Windows.Media.Imaging.BitmapSource)image.Source); 860System.Windows.Media.Imaging.BitmapSource bitmapSource = GetPasteData(dataObjectToApply, DataFormats.Bitmap) as System.Windows.Media.Imaging.BitmapSource;
src\Framework\System\Windows\Documents\TextRange.cs (2)
1039System.Windows.Media.Imaging.BitmapSource bitmapSource = (System.Windows.Media.Imaging.BitmapSource)image.Source;
src\Framework\System\Windows\Documents\WpfPayload.cs (7)
251internal static MemoryStream SaveImage(BitmapSource bitmapSource, string imageContentType) 433private BitmapSource GetBitmapSourceFromImage(Image image) 435if (image.Source is BitmapSource) 437return (BitmapSource)image.Source; 482private void CreateImagePart(PackagePart sourcePart, BitmapSource imageSource, string imageContentType, int imageIndex) 664private static bool ImagesAreIdentical(BitmapSource imageSource1, BitmapSource imageSource2)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (2)
2056System.Windows.Media.Imaging.BitmapSource bitmapSource = (System.Windows.Media.Imaging.BitmapSource)System.Windows.Media.Imaging.BitmapFrame.Create(imageStream);
src\Framework\System\Windows\Interop\HwndHost.cs (1)
952System.Windows.Media.Imaging.BitmapSource bitmapSource = Imaging.CriticalCreateBitmapSourceFromHBitmap(hBitmap.Handle, IntPtr.Zero, Int32Rect.Empty, null, WICBitmapAlphaChannelOption.WICBitmapIgnoreAlpha);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
127case 35: t = () => typeof(BitmapSource); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
2031typeof(System.Windows.Media.Imaging.BitmapSource),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
5579case KnownElements.BitmapSource: t = typeof(System.Windows.Media.Imaging.BitmapSource); break;
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\RetriableClipboard.cs (1)
63internal static void SetImage(BitmapSource image)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
1050BitmapSource screenShot = this.CreateScreenShot();
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1161BitmapSource CreateScreenShot() 1184BitmapSource source = BitmapFrame.Create(renderBitmap);
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (2)
208enabledImageSource = BitmapSource.Create(width, height, image.DpiX, image.DpiY, format, null, pixels, stride); 215disabledImageSource = BitmapSource.Create(width, height, image.DpiX, image.DpiY, format, null, pixels, stride);