I need to display a JPG image as backgorund of a DialogBox. Can you help me??
Hovewer I know to program in C, so I don't know classes and stuff like that. There a way to display JPG only using C code??
Thank you for your help
I need to display a JPG image as backgorund of a DialogBox. Can you help me??
Hovewer I know to program in C, so I don't know classes and stuff like that. There a way to display JPG only using C code??
Thank you for your help
first, I believe some of the newer versions of windows support jpegs but not all win32 does.
I would suggest you use one of the libraries out there for conversion to DIB. I've used two. Intel Jpeg library downloadable for free from the intel site, and the "independant JPEG group" or something like that has one with the source available.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
The intel jpeg library is no longer available free. It has been swallowed up by the larger primitives library and the only download intel offers now is an evaluation edition of the library which i believe is pretty much bugger all use to anyone.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
oh, I didn't know that. The independant Jpeg group one is open source though. It is however nasty, macro filled C. good luck
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
here's the link
http://www.ijg.org/
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
but VC++ has not functions about displaying JPG??
VC++ is not the question. The API your app will be using is. I understand it is possible to load a JPEG in some later versions of windows but not all 32 bit support it. 32 bit includes everything Win95 and up.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
ok, i'll look at jpeg organization
Unless you HAVE to use a jpg as the background, convert to a BMP which the WIN32 API can handle and use LoadImage(), CreateCompatibleDC() ect.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
The problem is that my application, for what it does, using BMP is very big in bytes
I recomend Smaller Animals software's Image Source library. It can convert from most common formats to DIB's or DDB's.
Is well supported, frequently updated, well commented and fast. (but costs)
look here
http://www.smalleranimals.com/isource.htm
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill