BitmapImage
Stores a URI or stream as a bitmap source; assigning a stream inspects its dimensions, while a URI is stored without loading the image.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public sealed class BitmapImage : BitmapSource
Inheritance: objectBitmapSourceBitmapImage
Constructors
Creates a bitmap source with no URI or stream assigned.
public BitmapImage()
Creates a bitmap source that stores the specified URI without loading image data from it.
Properties
Gets or sets creation flags. The current loader stores this value but does not use it when reading the stream.
public BitmapCreateOptions CreateOptions { get; set; }
Gets the height, in pixels, recorded by the last successful stream inspection.
public int PixelHeight { get; }
Gets the width, in pixels, recorded by the last successful stream inspection.
public int PixelWidth { get; }
Gets or sets the stream used as image data. Assigning a non-null stream reads and stores its pixel dimensions.
public Stream StreamSource { get; set; }
The stream does not contain an image that can be read.
The stream is retained and is not disposed by this property.