Guffy's blog

By Guffy, history, 6 years ago, In English

Hello Codeforces.

I have one question. Can we use image / pixel color on Dev C++, if YES, how?

  • Vote: I like it
  • -4
  • Vote: I do not like it

»
6 years ago, # |
Rev. 3   Vote: I like it -8 Vote: I do not like it

Dear Guffy,

Whether the image you are interested in using is read from data file or clipped from the computer display windows, and regardless of the C++ IDE you intend to use, the image data is often stored either as a one-dimensional or a two-dimensional array with proper size whose items represent the color information of each pixel, and ordered in the array according to the relative position of the pixel to one of the image corner points.

The following is an example from Stack Overflow for using image data read from a .bmp file.

Best wishes,