Import image

This is a discussion on Import image within the C Programming forums, part of the General Programming Boards category; Hi! Everyone. I need your help, I want to import images in my program and I have no idea what ...

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    61

    Import image

    Hi! Everyone. I need your help, I want to import images in my program and I have no idea what function I will use. Can you please me?
    Thank you very much! : )
    Compiler: Turboc 3.0

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,824
    > Compiler: Turboc 3.0
    Let me stop you right there.

    You see, those nice pictures you take with your camera - you know, the ones which are quite large - 100's of KB or even MB.

    THEY WILL NOT FIT in the 640K of memory that TurbidCrap can access.

    FFS, get a modern compiler for your modern OS and stop clinging to the past like it's some kind of security blanket.
    Visual Studio Express 2012 Products | Microsoft Visual Studio
    smorgasbordet - Pelles C
    Code::Blocks
    Orwell Dev-C++ | Free Development software downloads at SourceForge.net
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Stoned Witch Barney McGrew's Avatar
    Join Date
    Oct 2012
    Location
    astaylea
    Posts
    420
    Well, start by getting a newer compiler. That one hasn't had a release in at least twenty years. You could take a look at GCC or Clang. I think there are some IDEs like Code::Blocks which are easy to set up and come with GCC by default, so you might look into that.

    Anyway, it depends on the kind of file you want to import. For the more complex formats like PNG, there are libraries such as libpng. Whereas the simpler formats, like TGA, are usually simple enough to load yourself. So if you know what format you want to read, either check out the specifications for it and try writing it yourself, or look for a library. If you decide to write a loader yourself and it's your first time anything like that, you should look for some well-written sample code that you can learn from.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 03-13-2010, 05:10 AM
  2. merge multiple image file into one image
    By mr_empty in forum C++ Programming
    Replies: 7
    Last Post: 12-09-2009, 02:12 PM
  3. Replies: 13
    Last Post: 11-20-2009, 04:43 PM
  4. Problems with Image Magick [Unable to Quantisize Image]
    By Maragato in forum C Programming
    Replies: 1
    Last Post: 09-18-2006, 11:41 PM
  5. how to convert a bitmap image to a jpg image file using C++?
    By nomer in forum Windows Programming
    Replies: 4
    Last Post: 06-04-2006, 08:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21