Home > Software engineering >  MFC display image problem
MFC display image problem

Time:09-23

There is a 2 d array of float type, refer to how it can be displayed in the form of a grayscale image?
Between map it to a scale of 0-255 to me, but how to draw the picture displayed on the control? Feasible or infeasible?
MFC novice, consult with an open mind, thanks.

CodePudding user response:

Displayed on the picture control
The simplest is SetPixel

CodePudding user response:

Such problems directly baidu Google, search the MFC display images, off-the-shelf DEMO out, directly to fix

CodePudding user response:

According to gray scale is more troublesome, it is recommended that the display RGB, RGB three color gamut all use the same value

CodePudding user response:

use StretchDIBits CreateDIBSection, CreateDIBitmap three methods showed memory bitmap

CodePudding user response:

According to gray scale is more troublesome, it is recommended that the display RGB, RGB three color gamut all use the same value
  • Related