Re: Loading a jpeg.
"BJ Johns" <[email protected]>
| Newsgroups | gmane.comp.hardware.roku.technical |
|---|---|
| Message-ID | <[email protected]> |
I posted a somewhat similar question entitled "Displaying a JPG image that is already loaded in memory" and according to Don Woodward - 4/21/2004 11:28PM he stated...."There is a bug in the documentation for CascadeBitmap that says it can load jpeg files directly; in fact in only operates on png files." But at around that same time, Anthony Wood also responded with a comment and the source code to 'showjpg.cpp' which contains enough information for you to be able to display jpg images..... -BJ "Michael Artemiw" <[email protected]> wrote in message news:[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