Camera.CameraScreen.btTakePhoto_Released C# (CSharp) Method

btTakePhoto_Released() private method

private btTakePhoto_Released ( Component source ) : void
source Component
return void
        void btTakePhoto_Released(Component source)
        {
            if (this.started)
            {
                Texture2D fotoTexture = CameraSystem.Instance.CaptureImage();

                Label lbl = new Label(Image.CreateImage(fotoTexture));
                lbl.Rotable = lbl.Draggable = lbl.Scalable = true;
                AddComponent(lbl, 0, 0);
            }
        }