LateBoundBitmapDecoder Class

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)

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.Media.Imaging.BitmapDecoder
      System.Windows.Media.Imaging.LateBoundBitmapDecoder

public sealed class LateBoundBitmapDecoder : BitmapDecoder

NameDescription
System_CAPS_pubpropertyCodecInfo

Gets information that describes this codec.(Overrides BitmapDecoder.CodecInfo.)

System_CAPS_pubpropertyColorContexts

Gets a value that represents the color profile that is associated with a bitmap, if one is defined.(Overrides BitmapDecoder.ColorContexts.)

System_CAPS_pubpropertyDecoder

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

System_CAPS_pubpropertyDispatcher

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_pubpropertyFrames

Gets the content of an individual frame within a bitmap.(Overrides BitmapDecoder.Frames.)

System_CAPS_pubpropertyIsDownloading

Gets a value that indicates whether the decoder is currently downloading content.(Overrides BitmapDecoder.IsDownloading.)

System_CAPS_pubpropertyMetadata

Gets an instance of BitmapMetadata that represents the global metadata associated with this bitmap, if metadata is defined.(Inherited from BitmapDecoder.)

System_CAPS_pubpropertyPalette

Gets the BitmapPalette that is associated with this decoder.(Overrides BitmapDecoder.Palette.)

System_CAPS_pubpropertyPreview

Gets a BitmapSource that represents the global preview of this bitmap, if one is defined.(Overrides BitmapDecoder.Preview.)

System_CAPS_pubpropertyThumbnail

Gets a BitmapSource that represents the thumbnail of the bitmap, if one is defined.(Overrides BitmapDecoder.Thumbnail.)

NameDescription
System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_pubmethodCreateInPlaceBitmapMetadataWriter()

Creates an instance of InPlaceBitmapMetadataWriter, which can be used to update the metadata of a bitmap.(Inherited from BitmapDecoder.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Converts the current value of a BitmapDecoder to a String.(Inherited from BitmapDecoder.)

System_CAPS_pubmethodVerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

NameDescription
System_CAPS_pubeventDownloadCompleted

Occurs when a BitmapDecoder has finished downloading bitmap content.(Inherited from BitmapDecoder.)

System_CAPS_pubeventDownloadFailed

Occurs when bitmap content failed to download.(Inherited from BitmapDecoder.)

System_CAPS_pubeventDownloadProgress

Occurs when a BitmapDecoder has made progress downloading bitmap content.(Inherited from 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.

.NET Framework
Available since 3.0

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

Return to top
Show:
© 2016 Microsoft