Jump to content

Recommended Posts

Posted

Hi,

I have a problem with managed camera API (using CameraCaptureDialog from Microsoft.WindowsMobile.Forms.dll). When I take picture, it works fine but it didn't return the filename for me (FileName property is empty string).

If you know how to work with Omnia's camera in C# or where can I find working camera API please help.

Guest zemrwhite2
Posted

Hello,

I too have not been able to use properly this class.

Did you check ShowDialog() return code ? For me it was never DialogResult.OK, so I did'nt bother checking FileName property and throw it away. It is up to the OEM to implement it correctly, and it seems Samsung did not bother doing it well, note I may be wrong.

On the other hand, DirectShow API works very well with Omnias, you can google for samples on how to access it from .Net, and Windows Mobile SDK contains some DS samples.

Using a lower level API allows better control on what you are doing, but that means more work.

You can even access front camera by setting this registry value to 1 right before starting your DS graph :

HKCU\Software\Microsoft\Pictures\Camera\USER\Sensor_ID

Note that will not work with higher level API since they set it first to 0.

Guest zemrwhite2
Posted (edited)

I just ran the CECamera sample (unmodified) from Windows Mobile 6 SDK which uses CameraCaptureDialog and confirm that it does not work properly. The picture is saved in defined InitialDirectory property, but setting DefaultFilename is useless.

Edit : I wonder if Samsung implementation of high level APIs is better on latest ROMs, mine is currently AEHH2.

Which one do you use ?

Edited by zemrwhite2
Posted

Currently I have SAHI3 but as far as I know there is already SAHJ3 which is the newest Polish ROM. When it'll be available on Samsung's site I'll do an update. Maybe it'll help but I don;t think so B)

  • 3 months later...
Guest estebald
Posted
Hi,

I have a problem with managed camera API (using CameraCaptureDialog from Microsoft.WindowsMobile.Forms.dll). When I take picture, it works fine but it didn't return the filename for me (FileName property is empty string).

If you know how to work with Omnia's camera in C# or where can I find working camera API please help.

Don't use OK button but Envelope button => Then it will work

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.