the stretchdibits function

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 ??

herilane
04-15-2005, 07:17 AM
You have posted the exact same question here:
http://www.xtremevbtalk.com/showthread.php?t=159104

Are you doing this in VB6 or VB.Net?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum