Results 1 to 3 of 3

Thread: Need a challenge?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186

    Post

    Hey guys, this should be fun:


    I want to be able to format a picture however I want.

    Let me explain. My users don't know the difference between gif's, bmp's or jpeg's, nor they know anything about pixels or KBites.

    They have to chose a picture from their disk to import to the application.

    The thing is, that I want to be able to format the picture to a Jpeg, with a fixed 200*100 pixels size and under 20KB, no matter what format they have chosen.

    Is this possible from VB?, any API that can do this?

    My idea is to write a com object that receives the picture as a parameter formats it and returns a jpeg formatted after my specifications.

    Can this be done?
    any suggestions?
    Please help,

    Best regards
    André

  2. #2
    Member
    Join Date
    Jan 2000
    Location
    Launceston, Tasmania, Australia
    Posts
    44

    Post

    ummmm I don't really understand what you mean by your question... but when I want to change a pictures format I have done it with an example like so with success:

    Private Sub Command1_Click()
    picture1.picture = Loadpicture("C:\mooose.gif")
    end sub

    Private Sub Command2_Click()
    SavePicture Picture1.Picture, "C:\mooose.jpg"
    end sub

    I don't know about compression though depends how the user has the compression rate set,


    ------------------
    Mooose

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386

    Post

    You can only save as bitmap with vb.
    However, there's a dll which allows you to save pics as jpg: http://dilib.hypermart.net/dl/dijpg.htm

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