BitmapImage
Provides stream-backed bitmap dimensions and manifest-resource loading for RichTextEditor images.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public sealed class BitmapImage : BitmapSource
Inheritance: objectBitmapSourceBitmapImage
Constructors
Creates an image without a source. Assign StreamSource or UriSource to load one.
public BitmapImage()
Creates an image from the manifest resource named by the URI's original string.
public BitmapImage(Uri uri)
A URI whose original string identifies a manifest resource.
Properties
Gets or sets bitmap-creation compatibility flags. The WinForms implementation stores this value but does not apply it.
public BitmapCreateOptions CreateOptions { get; set; }
Gets the decode-width metadata stored by this shim. The WinForms loader does not populate it for decoded source images; the placeholder generator sets it to the generated image width.
public int DecodePixelWidth { get; }
Gets the source image height in pixels, populated when an image stream is assigned.
public int PixelHeight { get; }
Gets the source image width in pixels, populated when an image stream is assigned.
public int PixelWidth { get; }
Gets or sets the image stream. Assigning a non-null stream immediately reads the source image dimensions.
public Stream StreamSource { get; set; }
Gets or sets a manifest-resource URI. Setting it loads the resource named by OriginalString into StreamSource.
public Uri UriSource { get; set; }