我有职能产生我需要抽取的阵列。 该阵列以8个轨道级图像的形式出现。 我如何适当抽取这些阵列? 我用“SretchDIBits”来拍摄图像的双双双双双双双双双双双手法,用双双双双双双双双双双双双双双手法,对这张照相。 我的问题是,我/我怎么能做一些类似的东西?
相关的工作胜利32守则
screen = LCD_image( calcs[slot].cpu.pio.lcd ) ;
if (StretchDIBits( hdc,
rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
0, 0, lcd->width, 64,
screen,
bi,
DIB_RGB_COLORS,
SRCCOPY) == 0) {
printf("error in SetDIBitsToDevice
");
}
if (BitBlt( hdcDest, rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
hdc, 0, 0, SRCCOPY ) == FALSE) printf("Bit blt failed
");
相关的非工作范围植被法典:
unsigned char *screen;
screen = LCD_image( calcs[gslot].cpu.pio.lcd ) ;
wxImage screenImage(rc.GetWidth(), rc.GetHeight(), screen, true);
wxBitmap bmpBuf(screenImage);
wxMemDC.SelectObject(bmpBuf);
wxDCDest->Blit(drawPoint.x, drawPoint.y, rc.GetWidth(), rc.GetHeight(), &wxMemDC, 0, 0);
wxMemDC.SelectObject(wxNullBitmap);