CameraView
CameraView is used to capture pictures and record videos
app.CreateCameraView(w,h,options)Options
- Front
- CIF
- QVGA
- UseBitmap
- NoRotate
Methods
- id
- Destroy()
- Release()
- SetVisibility( mode )
- GetVisibility()
- Hide()
- Gone()
- Show()
- IsVisible()
- SetPadding( left,top,right,bottom )
- SetMargins( left,top,right,bottom )
- SetBackground( file,options )
- SetBackColor( clr )
- SetBackGradient( colour1,colour2,colour3,options )
- SetBackGradientRadial( x,y,radius,colour1,colour2,colour3,options )
- SetColorFilter( clr,mode )
- AdjustColor( hue,sat,bright,cont )
- SetPosition( left,top,width,height,options )
- SetSize( width,height,options )
- GetWidth( options )
- GetHeight( options )
- GetAbsWidth()
- GetAbsHeight()
- GetLeft( options )
- GetTop( options )
- GetPosition( options )
- SetScale( x,y )
- Focus()
- GetType()
- StartPreview()
- StopPreview()
- SetFocusMode( mode )
- SetZoom( level )
- GetZoom()
- GetMaxZoom()
- SetPictureSize( width,height )
- GetPictureSizes()
- SetColorEffect( effect )
- GetColorEffects()
- TakePicture( file )
- Record( file,seconds )
- IsRecording()
- Stop()
- Stream( ip,port,quality,fps,mtu )
- HasFlash()
- SetFlash( onoff )
- SetSound( onoff )
- GetImageWidth()
- GetImageHeight()
- GetCameraCount()
- SetPreviewImage( img )
- SetDuplicateImage( img1,img2 )
- MotionMosaic( xtiles,ytiles,sensitivity,minPeriod,img )
- ReportColors( list,callback,sampSize,maxRate )
- AutoCapture( path,file,maxCount )
- SetOnReady( callback )
- SetOnMotion( callback )
- SetOnPicture( callback )
- SetOnFocus( callback )
- GetPixelData( format,left,top,width,height )
- FindFaces( max )
- GetParameters()
- SetParameter( name,value )