Einhugur Framework for C++

Application.GetPNGImage Method

Gets a PNG image from the Application Bundle.

public Image* GetPNGImage(
   String key)

Parameters

key
The name of the image to fetch. (Case sensitive and should be without the .png)

Returns

Image*
a pointer to the Image.

Remarks

You are responsible for calling release on the Image that is returned.

Example:

Image* image = App->GetPNGImage(CFSTR("DetailView"));

context->DrawImage(image,10,80);

image->Release();

See Also

Application Class