Have you implemented your CountComponentControls() & ComponentControl()-functions correctly, so they would return both of your controls.
And are you sure your image for CEikImage, is in right path and can be found correctly ?
You could also try first loading your images & checking that they are loaded correctly and then use SetBitmap() & SetMask()-functions to set them to your CEikImage, then at least you would know that everything is working correctly.
// ---------------------------------------------------------
// CDirectionsContainer::SizeChanged()
// Called by framework when the view size is changed
// ---------------------------------------------------------
//
void CDirectionsWelcomeContainer::SizeChanged()
{
// TODO: Add here control resize code etc.
//iLabel->SetExtent( TPoint(10,10), iLabel->MinimumSize() );
//iToDoLabel->SetExtent( TPoint(10,100), iToDoLabel->MinimumSize() );
}
Your code looks good to me, dunno really why you are not getting anything to the screen. Anyway to load the images just use CFbsBitmap-object, it's well documented & easy to use and after succesfull loading just set it by using the functions provided by CEikImage (well documented as well).
I just checked that I am able to load the bitmap using CFbsBitmap function. bitmap->Load(imagen,0) returns zero which means success. The data.mbm file contain one bit map file only.
However I am still not able to load the image using SetBitmap and SetMask functions. Do I need to overwrite the Draw function of the container?
// load the bitmap from an .mbm file
bitmap = new (ELeave) CFbsBitmap();
CleanupStack::PushL(bitmap);
TInt ret = bitmap->Load(imagen,0);
CleanupStack::PopAndDestroy();
I'm still puzzled why it doesn't work, your code looks good enough. Anyway in case you want, you could send project to me (jusilven@hotmail.com) and I'll look into it, propably can get it fixed a lot faster that way.
reading the messages in this post , i was wondering how to capture the displayed image's data and apply some standard perform image processing algorithms on it