Convert const int** to image

This is a discussion on Convert const int** to image within the C++ Programming forums, part of the General Programming Boards category; I have 2D int array for every pixel on the screen (RGB). How can I save the information in any ...

  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
    Posts
    23,025
    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, 09:08 AM
  2. convert int to const int
    By koyboy in forum C Programming
    Replies: 14
    Last Post: 05-25-2008, 03: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, 08: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

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