CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Posts
    4

    Exclamation Convert BMP to JPEG (WITHOUT DLL)


    I'm writing a program and I need to convert BMP to JPEG. I read the other threads but in each, a DLL is needed. I need to make the conversion with straight VB code (or through a .BAS file) Is there any way to make the conversion WITHOUT an external DLL/OCX File???

  2. #2
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923
    Surely, but you'll have to know the BMP and JPG format. If you want to take a look at BMP format file, look for MSDN and the BITMAP functions and data types (BITMAPFILEHEADER, BITMAPINFOHEADER), this will allow you to read the information with VisualBasic OPEN method.

    I don't know about JPG format, you'll have to find it, maybe some projects might reveal it at http://www.planetsourcecode.com or http://www.vbcode.com

    JeffB
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  3. #3
    Join Date
    Jun 2002
    Location
    West Virginia
    Posts
    131
    For file formats see:
    http://www.wotsit.org/default.asp
    jpg is in graphics section and about the 5th page

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