Click here to Skip to main content
15,887,831 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Actually I want to convert an image to pixels and then point a pointer to the first pixel strictly in C++. Please answer this ASAP. Thank you.
Posted
Updated 15-Jun-10 23:20pm
v3
Comments
Sandeep Mewara 16-Jun-10 5:44am    
Reason for my vote of 1
1. Demanding
2. No effort... GimmeCode

 
Share this answer
 
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)[^]
 
Share this answer
 
Another option (as CImage is a GDI+ wrapper) is using directly GDI+.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900