Results 1 to 7 of 7

Thread: Converting Screenshot to a smaller size

  1. #1

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    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

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Use StretchBlt (API)

    [Short question, shorter answer ]

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  3. #3

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    StretchBlt? ok, but how? any specific parameters?
    I'm not very used to graphic APIS...

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

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    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!

  5. #5

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    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

  6. #6
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    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.

  7. #7

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    Well, thanks anyway.
    Does anyone else know, where to find that dll?

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width