C# Class UnityEngine.VR.WSA.WebCam.PhotoCapture

Captures a photo from the web camera and stores it in memory or on disk.

Inheritance: IDisposable
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
CreateAsync ( bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback ) : void
Dispose ( ) : void

Dispose must be called to shutdown the PhotoCapture instance.

GetUnsafePointerToVideoDeviceController ( ) : IntPtr

Provides a COM pointer to the native IVideoDeviceController.

StartPhotoModeAsync ( CameraParameters setupParams, OnPhotoModeStartedCallback onPhotoModeStartedCallback ) : void
StopPhotoModeAsync ( OnPhotoModeStoppedCallback onPhotoModeStoppedCallback ) : void
TakePhotoAsync ( OnCapturedToMemoryCallback onCapturedPhotoToMemoryCallback ) : void
TakePhotoAsync ( string filename, PhotoCaptureFileOutputFormat fileOutputFormat, OnCapturedToDiskCallback onCapturedPhotoToDiskCallback ) : void

Private Methods

Method Description
CapturePhotoToDisk_Internal ( IntPtr photoCaptureObj, string filename, int fileOutputFormat, OnCapturedToDiskCallback onCapturedPhotoToDiskCallback ) : void
CapturePhotoToMemory_Internal ( IntPtr photoCaptureObj, OnCapturedToMemoryCallback onCapturedPhotoToMemoryCallback ) : void
DisposeThreaded_Internal ( IntPtr photoCaptureObj ) : void
Dispose_Internal ( IntPtr photoCaptureObj ) : void
GetSupportedResolutions_Internal ( ) : UnityEngine.Resolution[]
GetUnsafePointerToVideoDeviceController_Internal ( IntPtr photoCaptureObj ) : IntPtr
INTERNAL_CALL_GetUnsafePointerToVideoDeviceController_Internal ( IntPtr photoCaptureObj, IntPtr &value ) : void
INTERNAL_CALL_Instantiate_Internal ( bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback, IntPtr &value ) : void
Instantiate_Internal ( bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback ) : IntPtr
InvokeOnCapturedPhotoToDiskDelegate ( OnCapturedToDiskCallback callback, long hResult ) : void
InvokeOnCapturedPhotoToMemoryDelegate ( OnCapturedToMemoryCallback callback, long hResult, IntPtr photoCaptureFramePtr ) : void
InvokeOnCreatedResourceDelegate ( OnCaptureResourceCreatedCallback callback, IntPtr nativePtr ) : void
InvokeOnPhotoModeStartedDelegate ( OnPhotoModeStartedCallback callback, long hResult ) : void
InvokeOnPhotoModeStoppedDelegate ( OnPhotoModeStoppedCallback callback, long hResult ) : void
MakeCaptureResult ( CaptureResultType resultType, long hResult ) : PhotoCaptureResult
MakeCaptureResult ( long hResult ) : PhotoCaptureResult
PhotoCapture ( IntPtr nativeCaptureObject ) : System
StartPhotoMode_Internal ( IntPtr photoCaptureObj, OnPhotoModeStartedCallback onPhotoModeStartedCallback, float hologramOpacity, float frameRate, int cameraResolutionWidth, int cameraResolutionHeight, int pixelFormat ) : void
StopPhotoMode_Internal ( IntPtr photoCaptureObj, OnPhotoModeStoppedCallback onPhotoModeStoppedCallback ) : void

Method Details

CreateAsync() public static method

public static CreateAsync ( bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback ) : void
showHolograms bool
onCreatedCallback OnCaptureResourceCreatedCallback
return void

Dispose() public method

Dispose must be called to shutdown the PhotoCapture instance.

public Dispose ( ) : void
return void

GetUnsafePointerToVideoDeviceController() public method

Provides a COM pointer to the native IVideoDeviceController.

public GetUnsafePointerToVideoDeviceController ( ) : IntPtr
return System.IntPtr

StartPhotoModeAsync() public method

public StartPhotoModeAsync ( CameraParameters setupParams, OnPhotoModeStartedCallback onPhotoModeStartedCallback ) : void
setupParams CameraParameters
onPhotoModeStartedCallback OnPhotoModeStartedCallback
return void

StopPhotoModeAsync() public method

public StopPhotoModeAsync ( OnPhotoModeStoppedCallback onPhotoModeStoppedCallback ) : void
onPhotoModeStoppedCallback OnPhotoModeStoppedCallback
return void

TakePhotoAsync() public method

public TakePhotoAsync ( OnCapturedToMemoryCallback onCapturedPhotoToMemoryCallback ) : void
onCapturedPhotoToMemoryCallback OnCapturedToMemoryCallback
return void

TakePhotoAsync() public method

public TakePhotoAsync ( string filename, PhotoCaptureFileOutputFormat fileOutputFormat, OnCapturedToDiskCallback onCapturedPhotoToDiskCallback ) : void
filename string
fileOutputFormat PhotoCaptureFileOutputFormat
onCapturedPhotoToDiskCallback OnCapturedToDiskCallback
return void