defcon31
04-07-2004, 03:28 AM
this is what i have done already:
i created a DIBSection that i can show in my picturebox:
lngDC = CreateCompatibleDC(Picture1.hDC)
lngDIB = CreateDIBSection(lngDC, bm, DIB_RGB_COLORS, ptr, 0, 0)
'a dll call that puts data 1280x960 in the memory that ptr points to
SelectObject lngDC, lngDIB
BitBlt Picture1.hDC, 0, 0, 1280, 960, lngDC, 0, 0, SRCCOPY
but now, how and where do i have to insert stretchdibits function
to make the data stretched to 320x240 in my picturebox ??
i created a DIBSection that i can show in my picturebox:
lngDC = CreateCompatibleDC(Picture1.hDC)
lngDIB = CreateDIBSection(lngDC, bm, DIB_RGB_COLORS, ptr, 0, 0)
'a dll call that puts data 1280x960 in the memory that ptr points to
SelectObject lngDC, lngDIB
BitBlt Picture1.hDC, 0, 0, 1280, 960, lngDC, 0, 0, SRCCOPY
but now, how and where do i have to insert stretchdibits function
to make the data stretched to 320x240 in my picturebox ??