Export (0) Print
Expand All

LateBoundBitmapDecoder Class

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

Namespace:  System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public sealed class LateBoundBitmapDecoder : BitmapDecoder
You cannot directly create an instance of this class in XAML.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft