Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


CCD Camera Library


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2007, 10:18 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default CCD Camera Library

Hi,

Here is a CameraCapture library (as I promised in another thread).
Needs .NETCF 1.0 and Windows Mobile 5.0 or above version.

Short Description:
Has two methods. GetImage and GetVideo. Both displays the Camera Capture Dialog and waits for user action. Returns in a string value the image or video filename (full path). Empty string if no image or video saved.

GetImage(ResolutionWidth, ResolutionHeight, Quality, ControlName, Title)
ResolutionWidth, ResolutionHeight: Integer values. The resolution of the image to capture.
Quality: Integer value. Sets the Image Quality. Default quality = 0 , Low quality = 1, Normal quality = 2, High quality = 3.
ControlName: String Value. The name of the control that owns the Camera Dialog.
Title: String Value. Sets the Title of the Camera Dialog.

GetVideo(ResolutionWidth, ResolutionHeight, VideoTypes ControlName, Title)
ResolutionWidth, ResolutionHeight: Integer values. The resolution of the video to capture.
VideoTypes: Integer value. Sets the allowed video types. Standard = 1 , Messaging = 2, All = 65535.
ControlName: String Value. The name of the control that owns the Camera Dialog.
Title: String Value. Sets the Title of the Camera Dialog.

The attached zip contains dzCameraCapture.dll and test1.sbp.

Enjoy
Attached Files
File Type: zip dzCameraCapture.zip (3.4 KB, 163 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #2 (permalink)  
Old 11-14-2007, 05:52 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,198
Default

Awsome!!!!
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #3 (permalink)  
Old 11-15-2007, 09:23 AM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

I compile source code and got 2 files: camera.exe and camera.exe.config

I copy 2 files to my device (with dzCameraCapture.dll, of course) and run. It run but when click button it got error:

An error occurred on sub button1_click
Line number: 0

What's wrong? Please help me. Thank you.
Reply With Quote
  #4 (permalink)  
Old 11-16-2007, 08:15 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

I assume that you are talking about included test1.sbp.

What OS is in your device? Actually what is your device?
What version of .NETCF is it running?

Try different compinations of ResolutionWidth, ResolutionHeight (supported by your camera)

Did you try to capture video? Results?

I'm Sorry for answering by asking questions
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #5 (permalink)  
Old 11-16-2007, 10:53 AM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

My device: Eten M700 - Windows Mobile 6.
My .NET CF: I don't know how to check
Capture video also have error.

Thank for your help.
Reply With Quote
  #6 (permalink)  
Old 11-17-2007, 12:37 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi,

Quote:
Originally Posted by justdo
My device: Eten M700 - Windows Mobile 6.
It seems that there is an incompatibility issue with your device (http://forums.microsoft.com/MSDN/Sho...60724&SiteID=1)

Try the attached dll and test1.sbp to this post as is.

Quote:
Originally Posted by justdo
My .NET CF: I don't know how to check
Use NetVersion method of Hardware Library. But as a WM6 device there is preinstalled .NETCF 2.0

The attached dzCamerCapture.DLL has 2 more methods (GetImage2 and GetVideo2). You can now specify Folder and Filename.

Please see attached sample.
Attached Files
File Type: zip dzCameraCapture2.zip (2.6 KB, 84 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #7 (permalink)  
Old 11-20-2007, 05:51 AM
Newbie
 
Join Date: Sep 2007
Posts: 8
Default

Hi dzt,

I tried your code but it's still error. Maybe my device can't use your library. Anyway thank you so much, you're great !
Reply With Quote
  #8 (permalink)  
Old 11-21-2007, 08:29 AM
jsa jsa is offline
Newbie
 
Join Date: Oct 2007
Posts: 2
Default flycam-cf

Hello,
Say me if your lib is for flycam-cf. i am using but, i have Know error, when i run .
I no speak english very well, I sorry, :-(

thanks
Reply With Quote
  #9 (permalink)  
Old 11-21-2007, 07:33 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hi,

I don't have a LifeView FlyCam-CF to test it. But searching I found that it is a discontinued product and there is not drivers for WM5 and above (even if it works with WM5).

So it seems that it can't be used this library with it.
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #10 (permalink)  
Old 11-23-2007, 07:48 PM
jsa jsa is offline
Newbie
 
Join Date: Oct 2007
Posts: 2
Default flycam

Hi
thanks,
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM
Video or Picture with Alpha over live camera? realvision Code Samples & Tips 0 04-01-2008 12:12 AM
CCD Camera Library/DLL? willisgt Questions & Help Needed 2 11-01-2007 07:09 PM


All times are GMT. The time now is 08:48 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0