dcsimg
Results 1 to 5 of 5

Thread: Convet to GIF /JPG/TIFF

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    52

    Exclamation Convet to GIF /JPG/TIFF

    Hi all,

    How do i save a bitmap as a GIF or a jpg?

    Just like photo shop?

    Regards,
    LXS
    lxs

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    A library for saving JPEG's and VB implemantation can be found at vbAccelerator.
    You can search on the internet for libraries for saving to other file formats. Most of them are expensive. You can also create them yourself, but it's hard. See my other post for more info about that.
    Oetje
    oetje@home.nl
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    52
    Thanks oetje,

    I need to do it without Dlls or ocx ,in pure vb 6.0

    any way?

    Atlest it i can conver it into a 8-bit grey cale, i can reduce its size.
    Bascically i want to reduce the size of games screenshot.
    Tried stretchblt() but the scores are not visible.

    Regards,
    LXs
    lxs

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I wouldn't suggest trying to do it in pure VB.

    It's very difficult to do things like this when you're in a pointerless language, since especially for formats like JPG you need to have explicit memory management.

    I doubt anyone's ever bothered to implement it in VB, since it's better to do it in something like C. And also, the Intel JPEG library is good enough for most people.

    What's so bad about using a DLL?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2001
    Posts
    52
    hi,
    nothing is wrong,
    its just that the person for whom i am coding wants it in pure vb
    Well i found some code
    please see it
    the code is slow for large bmp's and if an image is larger than picture box, it get clipped.
    So can you suggest a way to make it better?
    Regards,
    LXS
    lxs

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width