次の方法で共有


IXRBitmapCache (Windows Embedded CE 6.0)

1/6/2010

This class stores information about graphics hardware acceleration.

Syntax

class IXRBitmapCache : public IXRCacheMode

Methods

Method Description

IXRBitmapCache::GetRenderAtScale

Retrieves a multiplier value that indicates the amount by which to scale the size of the cached UI element when it is displayed.

IXRBitmapCache::SetRenderAtScale

Sets a multiplier value that indicates the amount by which to scale the size of the cached UI element when it is displayed.

Remarks

If the DirectDraw or OpenGL plug-in renderer is included in the run-time image, objects that derive from IXRUIElement can request support for hardware-accelerated graphics from the DirectDraw renderer by passing an IXRBitmapCache object into IXRUIElement::SetCacheMode. Then, when your application runs on a Windows Embedded CE powered device, the bitmaps that define the appearance of the UI element are processed by the Graphics Processing Unit (GPU), rendered by using hardware acceleration, and cached in video memory. This improves the stability and performance of the graphics environment for bitmaps.

You can use bitmap caching for a UI element if it implements one of the following features:

  • Transformations (such as translating, rotating, or stretching)
  • Clipping
  • Blending
  • Resources or child objects that are animation storyboards

For more information about how to preselect UI elements for bitmap caching and graphics hardware acceleration, see "To set the cache mode for a UI element by using C++" in Implement Hardware Acceleration for Graphics in Silverlight for Windows Embedded.

Inheritance Hierarchy

IXRDependencyObject

    IXRCacheMode

        IXRBitmapCache

.NET Framework Equivalent

None.

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Application Management
IXRTransform
IXRUIElement::SetClip
IXRGradientStop
IXRStoryboard