Loading a jpeg.
Michael Artemiw <[email protected]>
| Newsgroups | gmane.comp.hardware.roku.technical |
|---|---|
| Message-ID | <[email protected]> |
I am trying to load a jpeg from a file and am running into some problems.
I have tried the following code
CascadeFile cf("/mnt/smb/xpc/dwspictures/u19p.jpeg");
cout << cf.Open("r");
CascadeBitmap cb;
cout << cb.CreateFromBitmapFile(cf);
cout.flush();
This spits out 10 which seems to indicate there is no problem opening the file
but that it cannot load the jpeg.
I tried making use of CascadeJpegFile but its header is not included with
Cascade.h. When I add the appropriate include statement I get compile
errors with jpeglib.h
"typespecifier omitted for parameter", and
"parse error before '*'"
On lines 911 and 912.
Are we not supposed to use CascadeJpegFile yet? Is there any way to find
out what is going wrong in CreateFromBitmap?
Thanks,
Michael Artemiw
DashWorks Studios
www.dashworksstudios.com
416.259.7723