Export (0) Print
Expand All

BitmapCreateOptions Enumeration

Specifies initialization options for a bitmap image.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[FlagsAttribute]
public enum BitmapCreateOptions

Member nameDescription
Supported by Silverlight for Windows PhoneNoneNo initialization options are specified. This is the NOT the default value for the BitmapImage.CreateOptions property in Silverlight or Silverlight for Windows Phone (DelayCreation is the default).
Supported by Silverlight for Windows PhoneDelayCreationCauses a BitmapSource object to delay initialization until it is necessary. This is useful when dealing with collections of images. This is the default value of the BitmapImage.CreateOptions property in Silverlight and Silverlight for Windows Phone.
Supported by Silverlight for Windows PhoneIgnoreImageCacheInitializes images without using an existing image cache. Any existing entries in the image cache are replaced, even if they share the same URI. This option should only be selected when images in a cache need to be refreshed.
Supported by Silverlight for Windows PhoneBackgroundCreationCauses a BitmapSource to be initialized as soon as it is declared. This option uses the image cache for previously used URIs. If an image is not in the image cache, the image will be downloaded and decoded on a separate background thread.

When IgnoreImageCache is specified, any existing entries in the image cache are replaced, even if they share the same URI.

Version Notes

Silverlight for the desktop

The BackgroundCreation value is not available for Silverlight for the desktop.

Silverlight for Windows Phone Silverlight for Windows Phone

The BackgroundCreation value is valid for Silverlight for Windows Phone. For an application that targets Silverlight for Windows Phone, if you specify both BackgroundCreation and DelayCreation, the initialization of BitmapSource will be delayed until it is necessary. The initialization will use the image cache for previously used URIs. If an image is not in the image cache, the image will be downloaded and decoded on a separate background thread.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2014 Microsoft