Hi, I am new to GDI+ so sorry if the question is too simple. I am implementing an image processing program in C++. What I need is using GDI+ to load a jpg or bitmap files and retrieve the image content (for example, RGBRGBRGB......). I tried to search online but most of the tutorials involved device content of MFC which is the part really confuses me. Is there any tutorial that use pure GDI+ available? Appreciate your time and help. Jason
wrote in message news:354f5e33-096e-4d52-95ba-c722aec60ecf@d1g2000hsg.googlegroups.com... > Hi, > I am new to GDI+ so sorry if the question is too simple. I am > implementing an image processing program in C++. What I need is using > GDI+ to load a jpg or bitmap files and retrieve the image content (for > example, RGBRGBRGB......). You can use the DGI+ Bitmap class to load the JPEG image. Then use the Bitmap::LockBits()/Bitmap::UnlockBits() methods to access the pixel data directly. Mark -- Mark Salsbery Microsoft MVP - Visual C++ > > I tried to search online but most of the tutorials involved device > content of MFC which is the part really confuses me. Is there any > tutorial that use pure GDI+ available? Appreciate your time and help. > > Jason