/// <summary> /// Constructor. /// </summary> /// <param name="cameraEffect">The camera effect to use.</param> /// <param name="targetMediaElementSize">The size of the element where /// the stream is rendered to.</param> public CameraStreamSource(ICameraEffect cameraEffect, Size targetMediaElementSize) { CameraStreamSourceDataSingleton dataSource = CameraStreamSourceDataSingleton.Instance; dataSource.Initialize(targetMediaElementSize); dataSource.CameraEffect = cameraEffect; cameraEffect.OutputBufferSize = targetMediaElementSize; }
private void InitCameraEffect() { ICameraEffect blurMovieEffect = MainCamera.gameObject.GetOrAddComponent <BlurMovieEffect>(); m_CameraEffects.Add(CameraEffectType.BlurMovie, blurMovieEffect); ICameraEffect blurRadialEffect = MainCamera.gameObject.GetOrAddComponent <BlurRadialEffect>(); m_CameraEffects.Add(CameraEffectType.BlurRadial, blurRadialEffect); ICameraEffect waterDropEffect = MainCamera.gameObject.GetOrAddComponent <WaterDropEffect>(); m_CameraEffects.Add(CameraEffectType.WaterDrop, waterDropEffect); ICameraEffect screenGray = MainCamera.gameObject.GetOrAddComponent <ScreenGrayEffect>(); m_CameraEffects.Add(CameraEffectType.ScreenGray, screenGray); ICameraEffect oilPaint = MainCamera.gameObject.GetOrAddComponent <OilPaintEffect>(); m_CameraEffects.Add(CameraEffectType.OilPaint, oilPaint); ICameraEffect screenFade = MainCamera.gameObject.GetOrAddComponent <ScreenFadeEffect>(); m_CameraEffects.Add(CameraEffectType.ScreenFade, screenFade); ICameraEffect screenShake = MainCamera.gameObject.GetOrAddComponent <ScreenShakeEffect>(); m_CameraEffects.Add(CameraEffectType.ScreenShake, screenShake); HideAllEffect(); }
public CameraStreamSource(ICameraEffect cameraEffect, Size targetMediaElementSize) { CameraStreamSourceDataSingleton dataSource = CameraStreamSourceDataSingleton.Instance; dataSource.Initialize(targetMediaElementSize); dataSource.CameraEffect = cameraEffect; cameraEffect.OutputBufferSize = targetMediaElementSize; cameraEffect.OutputBuffer = dataSource.ImageBuffer.AsBuffer(); }
/// <summary> /// Constructor. /// </summary> /// <param name="cameraEffect">Camera effect to use.</param> /// <param name="size">Size of the media element where the stream is rendered to.</param> public CameraStreamSource(ICameraEffect cameraEffect, Size size) { _cameraEffect = cameraEffect; _frameSize = size; }
// Constructor public MainPage() { InitializeComponent(); cameraEffect = new WindowsPhoneRuntimeComponent(); BuildApplicationBar(); }
/// <summary> /// Constructor. /// </summary> public MainPage() { InitializeComponent(); cameraEffect = new NokiaSketchEffect(); SetCameraButtonsEnabled(true); }
/// <summary> /// Constructor. /// </summary> /// <param name="_cameraEffect">Camera effect to use.</param> /// <param name="size">Size of the media element where the stream is rendered to.</param> public CameraStreamSource(ICameraEffect cameraEffect, Size size) { _cameraEffect = cameraEffect; _frameSize = size; }
/// <summary> /// Constructor. /// </summary> public LensePage() { InitializeComponent(); _cameraEffect = new NokiaImagingSDKEffects(); BuildApplicationBar(); }
public EffectFinishedEventArgs(ICameraEffect effect) { this.Effect = effect; }
// Constructor public MainPage() { InitializeComponent(); cameraEffect = new WindowsPhoneRuntimeComponent(); BuildApplicationBar(); }