开发者

how to display IBitmapImage on CDC

开发者 https://www.devze.com 2022-12-12 05:47 出处:网络
What is the best way to display IBitmapImage on a device context. I am using Windows CE 6.0. void CImagining开发者_JAVA技巧TestView::OnDraw(CDC* pDC)

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

void CImagining开发者_JAVA技巧TestView::OnDraw(CDC* pDC)
{
    CImaginingTestDoc* pDoc = GetDocument();
    ASSERT_VALID(pDoc);

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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消