CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    Bitmap to Jpeg (once more :-@ )



    Hello,

    It seems a lot of people want to have possibilities to save pictures in jpeg format, with very simple encoding routine/control. that does include me.


    Any time the question is posted, there are useless answers for using commercial imaging software (! - not joking, see lower in the board), or useless multi-many-functions expensives OCXes, or free sample OCX (twisted pixel) which do not work, or whatever obnoxious advice which is not what people are waiting for in the end.


    So, the question is :


    Doed anyone have anything close to the following :

    - free of use

    - written / usable in VB environment

    - which will encode a given "picture" (property of a picturebox / image control) as jpeg file


    TIA

  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Bitmap to Jpeg - I want the otherway!





    Hi,


    I too am looking for a dll/algorithm that will convert a jpeg to BMP.


    Any helpers, please!


    Ravi

  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Bitmap to Jpeg (once more :-@ )



    I've just posted this in response to Ravi's question, but if you're interested in writing your own conversion code,


    http://www.wotsit.org/index.htm


    Have the format specifications for GIF/BMP/JPG and 100's of other file formats - it's pretty heavy going though.


    You might want to ask this question on some of the 'comp.' or 'microsoft.' related newsgroups - you can access these through the CodeGuru website.


    Good Luck


    Chris Eastwood


    Codeguru - the website for developers

    http://www.codeguru.com/vb



  4. #4
    Join Date
    Oct 1999
    Posts
    9

    Re: Bitmap to Jpeg - I want the otherway!

    did you ever find the other way, convert jpeg to BMP?

    i am looking for this.



  5. #5
    Join Date
    Oct 1999
    Location
    CA
    Posts
    91

    Re: Bitmap to Jpeg (once more :-@ )

    I don't need this or anything, but isn't there any public-domain source code out there that shows the basics on displaying and converting the major image types? It would be very useful when learning how images work. (It's a bit of a learning curve when all you have to go off of is the image file type specifications.)

    I think actually having the source code is far more benificial than just using another ocx. (Stand alone comes to mind.)

    Brewguru99

  6. #6
    Guest

    Re: Bitmap to Jpeg - I want the otherway!

    You guys act like you have never heard of Yahoo!

    All the source for reading and writing jpegs is available at
    the Independent JPEG Group's site. It is freely downloadable
    and you can compile your own code. In fact, their readme file
    even notes the the code is meant to be built into a library
    so you can use it in your apps.

    -OR-

    Look for CImage.zip somewahere on the net by Julian Smart. This is all of
    the code you need to do jpegs, tiff, bmps, pngs, and the underlying zlib
    needed. Here one good part about this - there is also a nice full blown
    CImage C++ class and source, AND several nice working example apps with
    source, AND even Windows Help files on how to use it all, AND the best thing about it is that it is all MFC, already in Visual C++ 4 projects! I compiled
    with only 1 small error and maybe 5 easy to fix warnings in VC++ 6, and it all
    runs fine.

    -OR-

    Step up and buy some nice control like Lead Tools, that you know will work
    correctly, and requires very little code on you end. Don't worry, I used to
    dislike buying ActiveX controls myself because I wanted to know how everything
    worked and never wanted to shell any money, but trust me, there is better way.
    Buy a control.




  7. #7
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Bitmap to Jpeg - I want the otherway!

    I downloaded a zip called dijpgdll.zip . Sorry, forgot where I found it.. think I saw the url in either this msgboard or at vbworld.net. That allows you to save a bitmap as jpg. The other way, jpg to bmp is easy. (SavePicture Function).

    Crazy D @ Work :-)

  8. #8
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Re: Bitmap to Jpeg - I want the otherway!

    May I have that ? Please.
    Thank you.
    (amaguran@hotmail.com)


  9. #9
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Bitmap to Jpeg - I want the otherway!

    It'll be great if you sent me this file, because i realy need a code which converts jpg to bmp and back.
    Tank you very much. ArminBahl@gmx.de


  10. #10
    Join Date
    Jul 1999
    Posts
    145

    Re: Bitmap to Jpeg (once more :-@ )

    I don't know if someone else already suggested this cause I didn't take the time to read all the posts but...

    One of the best sites on the web for vb stuff besides this one of course is
    www.vbaccelerator.com
    I believe they have a type library there and example code for converting images to jpeg. All free.
    If not, the guy who runs the site is great about answering email and would probably know where to find help...


  11. #11
    Join Date
    Apr 2000
    Posts
    69

    Re: Bitmap to Jpeg - I want the otherway!

    Hi,

    Can you send that DLL to me?
    eddieleong@hotmail.com


  12. #12
    Join Date
    Feb 2000
    Location
    FL
    Posts
    8

    Re: Bitmap to Jpeg (once more :-@ )

    About buying controls, Softuarium sells some nice image controls for $30 -royalty free in compiled programs. It may not be free, but it's the next best thing.
    http://www.softuarium.com/




  13. #13
    Join Date
    Oct 2000
    Location
    Toulouse, France
    Posts
    3

    Re: Bitmap to Jpeg - I want the otherway!

    I've found a snippet wich may be intersting :

    http://catenary.com/howto/bmp2jpeg.html

    Hope this helps !

    ----------
    Laurent JEGOU
    Cartographic Engineer and Infographer
    University of Toulouse-Le Mirail
    Toulouse, France.
    ----------

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

Featured