comment afficher IBitmapImage sur CDC
-
20-09-2019 - |
Question
Quelle est la meilleure façon d'afficher IBitmapImage sur un contexte de périphérique. J'utilise 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 ??
}
}
La solution
En supposant que vous parlez de l'API d'imagerie, jetez un oeil à l'interface IImage un en particulier son Dessin Méthode.
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow