Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created July 22, 2011 01:28
Show Gist options
  • Save follesoe/1098661 to your computer and use it in GitHub Desktop.
Save follesoe/1098661 to your computer and use it in GitHub Desktop.
ZXlib initialization code
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