can't see the image captured using the camera

I captured a picture and now I am trying to display this image, it is very difficult for me to do.

I created imageTracker and when the image is loaded I am made aware of this in onStateChange, but when I try to display the loaded image is always empty, I changed the imageView size and it will indeed smaller on screen, but still a Virgin.

I know the name of the file that I give to the imagetracker is ok (adding file://) because if I change it to something other code onStateChange is not called.

I've been to this simple task for a few hours now so someone help me please if you can.

void App::onStateChanged(bb::cascades::ResourceState::Type state)
{
    if(state == bb::cascades::ResourceState::Loaded)
    {
        mImage = ImageView::create();
        mImage->setImage(mImageTracker->image());
        mImage->setMaxWidth(500);
        mImage->setMaxHeight(500);

        Page *page = new Page();

            page->setContent(mImage);

            mRoot->pop();
            mRoot->push(page);
    }
}

http://supportforums.BlackBerry.com/T5/Cascades-development/imageView-Cascades-noob-question/TD-p/17...

This thread has code examples on image resizing using QImage.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for