}
}
public void setOpticalZoom(int zoom) {
try {
ZoomControl zoomControl = (ZoomControl) this.cameraPlayer
.getControl("javax.microedition.amms.control.camera.ZoomControl");
if (zoomControl.getMaxOpticalZoom() == 100) {
returnError("ScannerScreen.setOpticallZoom Error: Optical zoom not supported.");
} else {
zoomControl.setOpticalZoom(zoom);
}
} catch (IllegalArgumentException iae) {
returnError("ScannerScreen.setOpticalZoom Error: " + iae.getMessage());
}
}