Hi

My app uses an EyeModule2 camera to take photographs. The problem 
that i am facing is that although i am able to save the images, 
nothing is shown on the screen(The cap on the camera is open!). In 
effect eyemodule takes pictures without even displaying them.

I am using Palm OS SDK 4.0. Could that be causing a clash as it is 
mentioned that EyeSpring Modules support OS versions 3.1 thru 3.5. 
I have tried all that struck my brain but still could not make it 
work.

I have included the code below. Any help is welcome and valued.

----------
// ******** mainform.cpp
// AppStart
StartEyeMod();

FtrSet('Burk', 0, 'Zy01');

// Disable the previewing of images
previewDisabled = true;

// StarterPalmMain
if(cmd == sysAppLaunchCmdCustomBase)
{
   // The button was pushed with the application active, capture
    /the       image
   // Check OS version
   error = RomVersionCompatible(version31, launchFlags);
   if(error)
     return error;

   // Send firstUserEvent msg to current form
   MemSet(&event, sizeof(EventType), 0);
   event.eType = firstUserEvent;
   EvtAddEventToQueue(&event);
}

// ********Listform.cpp
screenDepth = SetScreenToMaxDepth();

if(GetEyeModAvail())
   if(GetEMDBExists())
     FrmGotoForm(PreviewForm);

//******** PreviewForm.cpp
// HandleEvent
   case firstUserEvent:
   // The module button was pushed
   if (CaptureState == captureStatePreview)
   {
     CaptureState = captureStateConfirm;
     CaptureImage();
   }
   CaptureState = captureStatePreview;
   previewDisabled = false;

   case frmOpenEvent:
   // ......
   // Enable the capture library
   capLibRef = OpenCapLib();
   // Create preview bitmap
   PreviewBmpP = BitmapCreate(&PreviewBitsP, screenDepth,
                bcPreviewBitmap);
   // Capture first garbage preview image
   CapPreviewImage(capLibRef, (UInt16*)PreviewBitsP, 
CaptureMode,
               PRESTART);
   // Enable the ability to preview the image
   CaptureState = captureStatePreview;
   previewDisabled = false;


----------

the problem is that the Image Preview is not shown at all, but 
something is saved, albeit not correctly. I am not clear about 
what is happening. Any help is welcome...

Thanks

Sridhar


The way you work tells the world who you are - Sridhar


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to