2010-05-05 10 views

Répondre

1

J'ai fini par utiliser la méthode suivante pour créer un second bitmap avec le format de pixel désiré et y dessiner l'image originale.

Bitmap *pTempBitmap = new Gdiplus::Bitmap(_Module.m_hInst, MAKEINTRESOURCE(lImageResource)); 
m_pGDIBitmap = new Bitmap(pTempBitmap->GetWidth(), pTempBitmap->GetHeight(), PixelFormat32bppARGB); 
Graphics TempGraphics(pTempBitmap); 
TempGraphics.DrawImage(m_pGDIBitmap, Point(0,0)); 
Questions connexes