Results 1 to 4 of 4

Thread: Saving the clipboard to a jpg

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    I need a way to save graphics from the clipboard (screenprints) to a designated area in a file format smaller than bmps. JPEGs are the best I can think of, but I need a way to save them when a button is pressed. We will have a mapped network drive mapped to a specific letter, the saving will need to look at a database and name it according to a series of fields. The database end is not a problem, but I need to know how we can automatically save as something other than a bmp.

    Any takers?

    Thanks in advance.

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    You could try something like this:
    Code:
    Private Sub Command1_Click()
        SavePicture Clipboard.GetData, "C:\windows\desktop\test.jpg"
    End Sub
    HTH

  3. #3
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post GIF vs. JPG

    JPEG's give you a lot better quality, but GIF's are a lot smaller.
    Tom Young, 14 Year Old
    [email protected]
    ICQ: 15743470 Add Me ICQ Me
    AIM: TomY10
    PERL, JavaScript and VB Programmer

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    9

    Post

    The code is great, it is just what I was looking for, but I was wondering if there is any way to control the file size. I tried a screenprint of a 1600 desktop in jpg bmp and gif and all of them were 5.5 meg, that is pretty big and I would lke to make that as small as possible, anyone know how to make a jpeg lower quality?

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