Created
July 22, 2011 01:28
-
-
Save follesoe/1098661 to your computer and use it in GitHub Desktop.
ZXlib initialization code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void OnPhotoCameraInitialized(object sender, CameraOperationCompletedEventArgs e) | |
{ | |
int width = Convert.ToInt32(_photoCamera.PreviewResolution.Width); | |
int height = Convert.ToInt32(_photoCamera.PreviewResolution.Height); | |
_luminance = new PhotoCameraLuminanceSource(width, height); | |
_reader = new QRCodeReader(); | |
Dispatcher.BeginInvoke(() => { | |
_previewTransform.Rotation = _photoCamera.Orientation; | |
_timer.Start(); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment