Link to home
Start Free TrialLog in
Avatar of TCPIP2600
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!
ASKER CERTIFIED SOLUTION
Avatar of TT
TT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TCPIP2600
TCPIP2600

ASKER

1st of all. this is wrong:
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?
1) Is there any error message or it just
   simply not work ?
2) check if your Gdi32.dll exists

no error, jsut doesnt do anything... GDI32 does exist. But also... BitBlt works fine... just stretchBlt doesnt work