Блог пользователя Guffy

Автор Guffy, история, 7 лет назад, По-английски

Hello Codeforces.

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

  • Проголосовать: нравится
  • -4
  • Проголосовать: не нравится

»
7 лет назад, # |
Rev. 3   Проголосовать: нравится -8 Проголосовать: не нравится

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,