PDA

View Full Version : Where camera properties are actually stored?



odissey1
November 15, 2006, 19:21:34
Hi,

When I adjust camera properties by calling
ICImagingControl1.ShowPropertyDialog;

properties:
Hue, Saturation, WhiteBalanceAuto, WhiteBalanceBlue, WhiteBalanceRed,
Brightness, Gain, GainAuto, Exposure, ExposureAuto, Auto reference,
Sharpness, Gamma

are getting saved somewhere. Where actually this storage occur: in the camera flash memory, in some .ini file or in the computer registry?

Sincerely,
Boris

Stefan Geissler
November 16, 2006, 09:03:02
Boris,

If you do not save these properties on your own, the driver saves them in the registry at the camera's reagistry entry. But if another application opens and configures this camera, then the settings will be overwritten. To be sure that the camera is configured as desired in your application, you should save the property settings in an own file. IC Imaging Control exposes the functionality for this:
ICImagingControl.LoadDeviceState
( http://www.imagingcontrol.com/ic/docs/html/activex/meth_descICImagingControl_LoadDeviceState.htm )
ICImagingControl.SaveDeviceState
( http://www.imagingcontrol.com/ic/docs/html/activex/meth_descICImagingControl_SaveDeviceState.htm )
ICImagingControl.LoadDeviceStateFromFile
( http://www.imagingcontrol.com/ic/docs/html/activex/meth_descICImagingControl_LoadDeviceStateFromFile. htm )
ICImagingControl.SaveDeviceStateToFile
( http://www.imagingcontrol.com/ic/docs/html/activex/meth_descICImagingControl_SaveDeviceStateToFile.ht m )

The device settings are saved in XML format.