LateBoundBitmapDecoder LateBoundBitmapDecoder LateBoundBitmapDecoder LateBoundBitmapDecoder Class


Defines a decoder that requires delayed bitmap creation such as asynchronous image downloads.

public ref class LateBoundBitmapDecoder sealed : System::Windows::Media::Imaging::BitmapDecoder
public sealed class LateBoundBitmapDecoder : System.Windows.Media.Imaging.BitmapDecoder
type LateBoundBitmapDecoder = class
    inherit BitmapDecoder
Public NotInheritable Class LateBoundBitmapDecoder
Inherits BitmapDecoder


A LateBoundBitmapDecoder is used when DelayCreation is specified. The Decoder property creates the necessary "real decoder" on an on-demand basis. All decoder properties return null while content is downloading.

A LateBoundBitmapDecoder can also be created when the system has an image that is being asynchronously downloaded locally. In this case, the decoder also returns null for properties until the image has been downloaded. The application can check the IsDownloading property or add a delegate for the DownloadCompleted event to monitor the download status. Furthermore, any frames obtained from a LateBoundBitmapDecoder while the image is downloading will return a width/height of 1,1 until the frames have finished downloading.

BitmapFrame objects that are returned by this class are frozen and are therefore immutable.


CodecInfo CodecInfo CodecInfo CodecInfo

Gets information that describes this codec.

ColorContexts ColorContexts ColorContexts ColorContexts

Gets a value that represents the color profile that is associated with a bitmap, if one is defined.

Decoder Decoder Decoder Decoder

Gets the underlying decoder that is associated with this late-bound decoder.

Dispatcher Dispatcher Dispatcher Dispatcher

Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Frames Frames Frames Frames

Gets the content of an individual frame within a bitmap.

IsDownloading IsDownloading IsDownloading IsDownloading

Gets a value that indicates whether the decoder is currently downloading content.

Metadata Metadata Metadata Metadata

Gets an instance of BitmapMetadata that represents the global metadata associated with this bitmap, if metadata is defined.

(Inherited from BitmapDecoder)
Palette Palette Palette Palette

Gets the BitmapPalette that is associated with this decoder.

Preview Preview Preview Preview

Gets a BitmapSource that represents the global preview of this bitmap, if one is defined.

Thumbnail Thumbnail Thumbnail Thumbnail

Gets a BitmapSource that represents the thumbnail of the bitmap, if one is defined.


CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
CreateInPlaceBitmapMetadataWriter() CreateInPlaceBitmapMetadataWriter() CreateInPlaceBitmapMetadataWriter() CreateInPlaceBitmapMetadataWriter()

Creates an instance of InPlaceBitmapMetadataWriter, which can be used to update the metadata of a bitmap.

(Inherited from BitmapDecoder)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Converts the current value of a BitmapDecoder to a String.

(Inherited from BitmapDecoder)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)


DownloadCompleted DownloadCompleted DownloadCompleted DownloadCompleted

Occurs when a BitmapDecoder has finished downloading bitmap content.

(Inherited from BitmapDecoder)
DownloadFailed DownloadFailed DownloadFailed DownloadFailed

Occurs when bitmap content failed to download.

(Inherited from BitmapDecoder)
DownloadProgress DownloadProgress DownloadProgress DownloadProgress

Occurs when a BitmapDecoder has made progress downloading bitmap content.

(Inherited from BitmapDecoder)

Applies to

See also