PDA

Click to See Complete Forum and Search --> : Converting Screenshot to a smaller size


Razzle
Feb 2nd, 2000, 10:11 AM
Does anyone know if there is a possibility to convert a screenshot to a smaller size? for example to convert it to a jpeg? I want to send a screenshot with a TCP control.

------------------
Razzle
ICQ#: 31429438

Fox
Feb 2nd, 2000, 06:15 PM
Use StretchBlt (API)

[Short question, shorter answer ;)]

------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.

Razzle
Feb 2nd, 2000, 06:22 PM
StretchBlt? ok, but how? any specific parameters?
I'm not very used to graphic APIS...

------------------
Razzle
ICQ#: 31429438

Fox
Feb 3rd, 2000, 06:08 AM
Well, the declaration:
-
Public Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
-

The parameters are quite easy to understand I think. Good luck!

Razzle
Feb 3rd, 2000, 05:46 PM
But I don't want to change the size of the screenshot, I want to change its filesize! that's why I was talking about Jpeg. If you take a screenshot and save it, it's saved as a bmp but that's much too large

------------------
Razzle
ICQ#: 31429438

Fox
Feb 3rd, 2000, 08:14 PM
Oh, so THAT's the problem ;). Well, I never did that but I think in VB you can't do this. Perhaps you can use some DLLs but don't ask me where to get them -sorry.

Razzle
Feb 4th, 2000, 12:10 AM
Well, thanks anyway.
Does anyone else know, where to find that dll?

------------------
Razzle
ICQ#: 31429438