IXRApplication::LoadImageFromFile (Compact 2013)

3/28/2014

This method loads a bitmap image from a local file and creates an IWICBitmap object for the resource manager to use.

Syntax

virtual HRESULT STDMETHODCALLTYPE LoadImageFromFile(
    const WCHAR* pFileName,
    IWICBitmap** ppImage
) = 0;

Parameters

  • pFileName
    [in] Pointer to a string that contains the path of the file that contains the image to be loaded. For example,

    TEXT("\\MyGraphics\\image.bmp")
    
  • ppImage
    [out] On return, contains an IWICBitmap interface pointer that provides programmatic access to the bitmap image.

Return Value

An HRESULT returns S_OK if successful; otherwise, returns a non-zero error code.

Remarks

XAML for Windows Embedded handles the drawing operation for the bitmap image in ppImage.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRApplication