Thread: Images

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Question Images

    Hello Everybody,

    I have a question. I have read up on the previous thread about loading jpg's and such on the borland environment, my question is this. I am using Dev-C++ and need to write an app that needs to accept a parameter that tells my program which scanned in image to open up. This will run on OS's from 98 to XP and I know the different OS's open up images in different utilities. I don't want anyone to write my code, I just want some advice. The code I seen from the previous thread looked long winded to do what I want to do. I need to read on how to open up images that are .bmp, .jpg, .tiff, etc. First question from all of this..... Passing a parameter from DJGPP to Dev-C++ should it be passed as a string parameter? Where should I start on displaying the images? Is GDI+ incorporated into Dev-C++? Can I get by with Win32 API? C++ in school did not teach me enough, that is for sure!!! Any suggestions would be appreciated.

    Gratefully,
    Kendal

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    One more Question?

    Where can I find a reference list of C++ libraries, their functions, API's, their functions, etc. Preferrably in a printable or book format that I can use for constant reference and read away from the PC.

    Thanks again,
    Kendal

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    --

  4. #4
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    For simple usage of graphics you could use Allegro. If you're interested in only making 2d games or 2d graphics that aren't too graphically complex then Allegro is a good API for you to use. However, if you're more interested in creating intense graphical games that may be 3d, then I would start off using a different API. Click the link in my signature, and there you will be able to find quite a few useful links and a couple of basic tutorials using Allegro.

  5. #5
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Images

    The app that I am writing does not need any intense graphics, it is a Medical Records system and I need to be able to display images that are scanned in from the lab. Nothing too intense, just a scanned in image.

    Thanks,
    Kendal

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    APIs

    Will I need to download any other API's besides Win32 if I decide to use them? I know Win32 is a part of windows so it exists always. Do other APIs need to be installed???

    Thanks,
    Kendal

  7. #7
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    2D images? Then i'd go with TechWins advice to use Allegro .
    --

  8. #8
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Use GDI+ for images. Read the tuts at MSDN
    GDI+ performance is a little lacking but with a cached bitmap its ok for all but the most intensive uses.There is details on how to do all of this at MSDN.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Images
    By _Nate_ in forum C Programming
    Replies: 4
    Last Post: 05-18-2008, 10:50 PM
  2. CBitmap + big images = bad?
    By dug in forum Windows Programming
    Replies: 18
    Last Post: 06-28-2003, 11:53 PM
  3. images, icons, and cursors, OH MY!
    By DarkViper in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2003, 02:26 PM
  4. STL, Queues And Images
    By simly01 in forum C++ Programming
    Replies: 3
    Last Post: 06-24-2002, 12:31 PM
  5. A simple question on Images....
    By LonelyPlanetWa in forum C Programming
    Replies: 7
    Last Post: 05-20-2002, 07:34 AM