Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 17 Apr 2008 13:56:06 -0700 (PDT),    group: microsoft.public.platformsdk.gdi        back       


Load jpg files   
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
date: Thu, 17 Apr 2008 13:56:06 -0700 (PDT)   author:   unknown

Re: Load jpg files   
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
date: Wed, 23 Apr 2008 13:35:52 -0700   author:   Mark Salsbery [MVP] MarkSalsbery[MVP]@newsgroup.nospam

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us