Include the header
atlimage.h
(your project must use
ATL or
MFC) and use the class
CImage
: it provide an easy way to load, save, render and access pixels on images from/to various formats, like
bmp,
jpeg,
png, etc.
Here you can find the documentation about the class:
CImage Class(ATL/MFC)[
^]