User Activity

  • Posted a comment on discussion Open Discussion on FreeImage

    The expectation with the code snippet below is a red square 2x2 pixels. However, the resulting image (see attached) is a blue square 2x2 pixels. After further experimentation I discovered the red and blue channels are swapped. It's not clear to me why that is the case, given that I explicitly pass the color masks as 0xFF0000 for red and 0x0000FF for blue. void saveImage(string filename) { int width = 2; int height = 2; BYTE* freeImagePixels { new BYTE[3 * width * height] { 255, 0, 0, 255, 0, 0, 255,...

View All

Personal Data

Username:
radectom
Joined:
2022-12-25 18:14:31.407000

Projects

  • No projects to display.

Personal Tools