View Single Post
  #1 (permalink)  
Old 11-14-2007, 11: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, 185 views)
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote