Question

What is the best way to display IBitmapImage on a device context. I am using Windows CE 6.0.

void CImaginingTestView::OnDraw(CDC* pDC)
{
    CImaginingTestDoc* pDoc = GetDocument();
    ASSERT_VALID(pDoc);

    IBitmapImage* pBitmapImage = pDoc->GetBitmapImage();
    if (pBitmapImage)
    {
       // how to draw my bitmap on a pDC ??
    }
}
Was it helpful?

Solution

Assuming you're talking about the Imaging API, take a look at the IImage interface an in particular its Draw Method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top