GetCameraCls
StateFag = GetCameraCls(CameraIndex)
 
Parameters:

    CameraIndex = The Index Identifier of the Camera that you wish to read from
Returns:

    StateFag = The current auto cls state of this camera (0 = off, 1 = on)
 

      GetCameraCls returns the CameraCLS state of a camera.



FACTS:


      * None



Mini Tutorial:


      This example creates a camera, activates the Auto CLS an sets it's CLS colour to a bright green colour, before display these values back.

  
  
; create camera 1.  Which will attach itself to
; the screen
  CreateCamera 1
  
; Activate the cameras Auto CLS.
  CameraCls 1,on
  
; Set the Cameras Auto CLS colour to Bright green colour
  CameraClsColour 1,RGB(0,255,0)
  
; Display camera ones CLS state and CLS
; colour to the screen
  Print "Camera Cls State:"+Str$(GetCameraCls(1))
  Print "Camera Cls Colour:"+Str$(GetCameraClsColour(1))
  
; Show the user the screen.
  Sync
  
; wait for a key press, before ending
  WaitKey
  



This example would output.

  
  Camera Cls State: 1
  Camera Cls Colour: 65280
  


 
Related Info: CameraCls | CameraClsColour | GetCameraClsColour | GetCameraStatus :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com