New to Telerik UI for WinForms? Start a free 30-day trial

Provides stream-backed bitmap dimensions and manifest-resource loading for RichTextEditor images.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public sealed class BitmapImage : BitmapSource

Inheritance: objectBitmapSourceBitmapImage

Constructors

Creates an image without a source. Assign StreamSource or UriSource to load one.

C#
public BitmapImage()

Creates an image from the manifest resource named by the URI's original string.

C#
public BitmapImage(Uri uri)
Parameters:uriUri

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.

C#
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.

C#
public int DecodePixelWidth { get; }

Gets the source image height in pixels, populated when an image stream is assigned.

C#
public int PixelHeight { get; }

Gets the source image width in pixels, populated when an image stream is assigned.

C#
public int PixelWidth { get; }

Gets or sets the image stream. Assigning a non-null stream immediately reads the source image dimensions.

C#
public Stream StreamSource { get; set; }

Gets or sets a manifest-resource URI. Setting it loads the resource named by OriginalString into StreamSource.

C#
public Uri UriSource { get; set; }

Extension Methods