Oh ok that helps and it seems that it does something. I found the code examples that you meantioned. Thanks. Now I am encoding and sending it to a filestream which I do by:
err = pnoJpeg2EncodeCreate(pnoJpegRefNum, &jpegEncode); pnoJpeg2EncodeToFileStream(pnoJpegRefNum, jpegEncode, neoslateJPG); .... setting up the image as in the code example from the documentation .... err = pnoJpeg2Write(pnoJpegRefNum, jpegEncode, helperBitmap); then free and close the library I get my bitmap from WinGetBitmap(WinGetDisplayWindow()); When I do all this everytime regardless of what I am trying to encode it ends up being a 4kb image which seems to be corrupt or incomplete. Is this because of high density screens or is there a special way to be grabbing my bitmap? I've tried creating a offscreen bitmap and using the BmpCreateBitmapV3 to create my bitmap. Then copying from the current screen to the offscreen one but the image still seem to be 4kb. Any ideas or has anyone seen something like this before. Again thanks as always for your help, Landon Cunningham On 6/22/05, Henk Jonas <[EMAIL PROTECTED]> wrote: > Landon Cunningham wrote: > > > Ok I am trying to get the pnojpeg library working and I already asked > > how to work with it but it just doesn't seem to work. I know I should > > be including the pnoJpeg.h file in my code. Then have the prc > > installed on my palm. Which I can see that the library seems to be on > > the palm. > > > > What are the .dll files for? I have read on the past posts that you > > put them in the simulator directory to get the library working on > > there. > > > > I thought I assumed that I have installed everything correctly but > > when I go to use the functions nothing seems to happen. I am trying to > > write to a file stream and after the encoding should be done my file > > remains empty. So I thought, is the library actually working. I > > installed my program on another palm that doesn't have the library and > > I got the same results for when I actually had the library installed. > > There was no indication or error that the library couldn't be used. > > Which brings me back to I don't think I have the library installed > > correctly. > > > > I feel like such a pain and well quite stupid. I do apologize and I > > appreciate all the help that everyone has been giving me. > > > > Landon Cunningham > > > > You have to find and open the lib. The lib should come with a sample > code which shows you how to do it. If the find and open failed, you can > show an error with FrmAlert if you like. > > FtrGet(sysFtrCreator, sysFtrNumProcessorID, &processor); > if (sysFtrNumProcessorIsARM(processor)) > { > error = pnoJpeg_OpenLibrary(&pnoJpegLibRef); > if (error == errNone) > bPnoJpegLibOpened = true; > } > > if (!bPnoJpegLibOpened) > { > error = SysLibFind(jpegLibName, &jpegLibRef); > if (error != errNone) // not already loaded; do it now > error = SysLibLoad(sysResTLibrary, jpegLibCreator, > &jpegLibRef); > if (error == errNone) > error = JpegLibOpen(jpegLibRef, > jpegLibCurrentVersion); > if (error == errNone) > bJpegLibOpened = true; > } > > Regards > Henk > > -- > ------------------------------------------------------------------------- > Henk Jonas [EMAIL PROTECTED] > Palm OS (r) certified developer > > Please contact me, if you need an off-side contract worker. > ------------------------------------------------------------------------- > > -- > For information on using the PalmSource Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/