Thread: Convert const int** to image

  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    2

    Convert const int** to image

    I have 2D int array for every pixel on the screen (RGB). How can I save the information in any picture extension (bmp, png, jpeg, it is not important)?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    BMP file format - Wikipedia, the free encyclopedia
    Or get an image library out there.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. convert int to const char *
    By greeney in forum C Programming
    Replies: 10
    Last Post: 11-04-2010, 08:08 AM
  2. convert int to const int
    By koyboy in forum C Programming
    Replies: 14
    Last Post: 05-25-2008, 02:26 AM
  3. 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, 07:40 PM
  4. convert int to const char*
    By meehanmd in forum C++ Programming
    Replies: 6
    Last Post: 03-24-2006, 11:56 AM
  5. Hi, how to convert a grayscale image into 8 bit image?
    By Alexanderbinich in forum C++ Programming
    Replies: 3
    Last Post: 03-15-2005, 07:50 PM