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