Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

The LateBoundBitmapDecoder type exposes the following members.

  NameDescription
Public propertyCodecInfoGets information that describes this codec. (Overrides BitmapDecoder.CodecInfo.)
Public propertyColorContextsGets a value that represents the color profile that is associated with a bitmap, if one is defined. (Overrides BitmapDecoder.ColorContexts.)
Public propertyDecoderGets the underlying decoder that is associated with this late-bound decoder.
Public propertyDispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public propertyFramesGets the content of an individual frame within a bitmap. (Overrides BitmapDecoder.Frames.)
Public propertyIsDownloadingGets a value that indicates whether the decoder is currently downloading content. (Overrides BitmapDecoder.IsDownloading.)
Public propertyMetadataGets an instance of BitmapMetadata that represents the global metadata associated with this bitmap, if metadata is defined. (Inherited from BitmapDecoder.)
Public propertyPaletteGets the BitmapPalette that is associated with this decoder. (Overrides BitmapDecoder.Palette.)
Public propertyPreviewGets a BitmapSource that represents the global preview of this bitmap, if one is defined. (Overrides BitmapDecoder.Preview.)
Public propertyThumbnailGets a BitmapSource that represents the thumbnail of the bitmap, if one is defined. (Overrides BitmapDecoder.Thumbnail.)
Top
  NameDescription
Public methodCheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public methodCreateInPlaceBitmapMetadataWriterCreates an instance of InPlaceBitmapMetadataWriter, which can be used to update the metadata of a bitmap. (Inherited from BitmapDecoder.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringConverts the current value of a BitmapDecoder to a String. (Inherited from BitmapDecoder.)
Public methodVerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
  NameDescription
Public eventDownloadCompletedOccurs when a BitmapDecoder has finished downloading bitmap content. (Inherited from BitmapDecoder.)
Public eventDownloadFailedOccurs when bitmap content failed to download. (Inherited from BitmapDecoder.)
Public eventDownloadProgressOccurs when a BitmapDecoder has made progress downloading bitmap content. (Inherited from BitmapDecoder.)
Top

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.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft. All rights reserved.