Compartilhar via


IXRBitmapImage (Compact 2013)

3/28/2014

This C++ class represents a bitmap image that is used as a part of an application user interface (UI).

Syntax

IXRBitmapImage : public IXRBitmapSource

Inheritance Hierarchy

IXRBitmapSource

     IXRBitmapImage

Methods

Method

Description

IXRBitmapImage::GetCreateOptions

Retrieves initialization options for bitmap images.

IXRBitmapImage::GetUriSource

Retrieves the Universal Resource Identifier (URI) of the graphics source file that contains the image that is represented by this IXRBitmapImage object.

IXRBitmapImage::SetCreateOptions

Sets initialization options for bitmap images.

IXRBitmapImage::SetUriSource

Sets the Universal Resource Identifier (URI) of the graphics source file that contains the image that will be represented by this IXRBitmapImage object.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

You use this class for graphics source files in image formats such as JPEG, BMP, PNG, or any other image format that is supported in your OS design.

You can also define a bitmap image in Microsoft Silverlight 3. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the BitmapImage Class on MSDN.

When you create a class instance, use an IXRBitmapImagePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.Media.Imaging.BitmapImage

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management