#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    10
    Rep Power
    0

    Problems with graphics


    How do i import images in C ? I want my program as a result to show me an image, how to do this ? :confused:
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,931
    Rep Power
    481
    You use a library that's already written to display images, or you call upon other programs for the job.

    I'd go with imagemagick display. Smart people would use a web browser because these are prevalent.
    [code]Code tags[/code] are essential for python code and Makefiles!
  4. #3
  5. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,216
    Rep Power
    2222
    C has no built-in support for graphics. Any and all support for graphics has to either be developed from scratch by the programmer or obtained through a graphics library that another programmer had developed from scratch.

    Also, graphics is system-dependent. The graphics library you use needs to be compatible with your operating system and with your development environment (AKA "IDE" (Integrated Development Environment), AKA "compiler" (even though the compiler is just one small part of the IDE) ). Provide us with that information and someone here should be able to recommend a graphics library or two. Do not provide that information and everybody will just move on.

IMN logo majestic logo threadwatch logo seochat tools logo