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
Printable View
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
Use StretchBlt (API)
[Short question, shorter answer ;)]
------------------
[email protected]
...
Every program can be reduced to one instruction which doesn't work.
StretchBlt? ok, but how? any specific parameters?
I'm not very used to graphic APIS...
------------------
Razzle
ICQ#: 31429438
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!
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
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.
Well, thanks anyway.
Does anyone else know, where to find that dll?
------------------
Razzle
ICQ#: 31429438