TCPIP2600
asked on
StretchBlt API
i read in alot of places that StretchBlt srtetches an image. But when i use it... it doesnt stretch at all.
I need source code that will take a bmp file and stretch it into a picture box.... thx1e6!
I need source code that will take a bmp file and stretch it into a picture box.... thx1e6!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1) Is there any error message or it just
simply not work ?
2) check if your Gdi32.dll exists
simply not work ?
2) check if your Gdi32.dll exists
ASKER
no error, jsut doesnt do anything... GDI32 does exist. But also... BitBlt works fine... just stretchBlt doesnt work
ASKER
StretchBlt (Pic2.HDC, 0, 0, _
Pic2.ScaleWidth, _
Pic2.ScaleHeight, _
Pic1.HDC, 0, 0, _
Pic1.ScaleWidth, _
Pic1.ScaleHeight, _
SRCCOPY)
its either:
StretchBlt Pic2.HDC, 0, 0, _
Pic2.ScaleWidth, _
Pic2.ScaleHeight, _
Pic1.HDC, 0, 0, _
Pic1.ScaleWidth, _
Pic1.ScaleHeight, _
SRCCOPY
or
dim rc
rc = StretchBlt (Pic2.HDC, 0, 0, _
Pic2.ScaleWidth, _
Pic2.ScaleHeight, _
Pic1.HDC, 0, 0, _
Pic1.ScaleWidth, _
Pic1.ScaleHeight, _
SRCCOPY)
2nd, neither of them work.... so whats wrong with my comp?