Draw Image

Rectangle.png

A) As displayObject:

bool ImageDraw::Draw(Direct2DContext* ctx, D2D1::Matrix3x2F* mtx) {
    Image* image = new Image(L"..\Data\Textures\EyeOfHorus_128.png");

    ctx->drawImage(image, 0, 0); return true; }
ImageDraw* imageDraw = new ImageDraw();
_stage->addChild(imageDraw);

B) As state object:

NOT SUPPORTED YET

C) As Bitmap object:

#include "Objects\display\components\Bitmap.h"

Bitmap* bitmap = new Bitmap(L"..\Data\Textures\EyeOfHorus_128.png");
_stage->addChild(bitmap);

Last edited Mar 27, 2013 at 8:14 PM by TypeOverride, version 3

Comments

No comments yet.