// Set the Brightness parameter to 0.5camera.BslBrightness.SetValue(0.5);// Set the Contrast parameter to 1.2camera.BslContrast.SetValue(1.2);
INodeMap&nodemap=camera.GetNodeMap();// Set the Brightness parameter to 0.5CFloatParameter(nodemap,"BslBrightness").SetValue(0.5);// Set the Contrast parameter to 1.2CFloatParameter(nodemap,"BslContrast").SetValue(1.2);
// Set the Brightness parameter to 0.5camera.Parameters[PLCamera.BslBrightness].SetValue(0.5);// Set the Contrast parameter to 1.2camera.Parameters[PLCamera.BslContrast].SetValue(1.2);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Set the Brightness parameter to 0.5 */errRes=PylonDeviceSetFloatFeature(hdev,"BslBrightness",0.5);CHECK(errRes);/* Set the Contrast parameter to 1.2 */errRes=PylonDeviceSetFloatFeature(hdev,"BslContrast",1.2);CHECK(errRes);
# Set the Brightness parameter to 0.5camera.BslBrightness.Value=0.5# Set the Contrast parameter to 1.2camera.BslContrast.Value=1.2
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* Set the Brightness parameter to 0.5 */errRes=PylonDeviceSetFloatFeature(hdev,"BslBrightness",0.5);CHECK(errRes);/* Set the Contrast parameter to 1.2 */errRes=PylonDeviceSetFloatFeature(hdev,"BslContrast",1.2);CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.