Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Commit

Permalink
Version 1.2.
Browse files Browse the repository at this point in the history
fix for Ticket#5 - Tap to focus sets wrong focus point [in ver. 1.1].
  • Loading branch information
mikpiipp committed Jan 30, 2013
1 parent e1fd464 commit 3369508
Show file tree
Hide file tree
Showing 22 changed files with 79 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CameraExplorer/AboutPage.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright © 2012 Nokia Corporation. All rights reserved.
Copyright © 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks
or trade names of their respective owners.
Expand Down
10 changes: 9 additions & 1 deletion CameraExplorer/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using System;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/App.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright © 2012 Nokia Corporation. All rights reserved.
Copyright © 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks
or trade names of their respective owners.
Expand Down
10 changes: 9 additions & 1 deletion CameraExplorer/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using System;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/ArrayParameter.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/DataContext.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/LocalizedStrings.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/MainPage.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright © 2012 Nokia Corporation. All rights reserved.
Copyright © 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks
or trade names of their respective owners.
Expand Down
19 changes: 14 additions & 5 deletions CameraExplorer/MainPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using Microsoft.Devices;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using Microsoft.Devices;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System;
Expand Down Expand Up @@ -232,13 +240,14 @@ private async void videoCanvas_Tap(object sender, GestureEventArgs e)
// Get tap coordinates as a foundation point
Windows.Foundation.Point tapPoint = new Windows.Foundation.Point(uiTapPoint.X, uiTapPoint.Y);

double xRatio = VideoCanvas.ActualWidth / _dataContext.Device.PreviewResolution.Width;
double yRatio = VideoCanvas.ActualHeight / _dataContext.Device.PreviewResolution.Height;

double xRatio = VideoCanvas.ActualHeight / _dataContext.Device.PreviewResolution.Width;
double yRatio = VideoCanvas.ActualWidth / _dataContext.Device.PreviewResolution.Height;

// adjust to center focus on the tap point
Windows.Foundation.Point displayOrigin = new Windows.Foundation.Point(
tapPoint.X - _focusRegionSize.Width / 2,
tapPoint.Y - _focusRegionSize.Height / 2);
tapPoint.Y - _focusRegionSize.Width / 2,
(VideoCanvas.ActualWidth - tapPoint.X) - _focusRegionSize.Height / 2);

// adjust for resolution difference between preview image and the canvas
Windows.Foundation.Point viewFinderOrigin = new Windows.Foundation.Point(displayOrigin.X / xRatio, displayOrigin.Y / yRatio);
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/OverlayTemplateSelector.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
10 changes: 9 additions & 1 deletion CameraExplorer/Parameter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using System.ComponentModel;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using System.ComponentModel;
using Windows.Phone.Media.Capture;

namespace CameraExplorer
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/PreviewPage.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright © 2012 Nokia Corporation. All rights reserved.
Copyright © 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks
or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/PreviewPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
6 changes: 3 additions & 3 deletions CameraExplorer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CameraExplorer")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyCopyright("Copyright © 2012-2013 Nokia Corporation.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,6 +32,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.1.1.0")]
[assembly: AssemblyFileVersion("1.1.1.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
2 changes: 1 addition & 1 deletion CameraExplorer/Properties/WMAppManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Deployment xmlns="http://schemas.microsoft.com/windowsphone/2012/deployment" AppPlatformVersion="8.0">
<DefaultLanguage xmlns="" code="en-US" />
<App xmlns="" ProductID="{94f53777-5783-47b2-9bcb-ce46ccb0f219}" Title="Camera Explorer" RuntimeType="Silverlight" Version="1.1.1.0" Genre="apps.normal" Author="Nokia" Description="" Publisher="Nokia" PublisherID="{cc336b25-5e51-419a-8c64-3c4a7a4383f4}">
<App xmlns="" ProductID="{94f53777-5783-47b2-9bcb-ce46ccb0f219}" Title="Camera Explorer" RuntimeType="Silverlight" Version="1.2.0.0" Genre="apps.normal" Author="Nokia" Description="" Publisher="Nokia" PublisherID="{cc336b25-5e51-419a-8c64-3c4a7a4383f4}">
<IconPath IsRelative="true" IsResource="false">Assets\ApplicationIcon.png</IconPath>
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
Expand Down
10 changes: 9 additions & 1 deletion CameraExplorer/RangeParameter.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using Microsoft.Devices;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using Microsoft.Devices;
using Microsoft.Phone.Shell;
using System;
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/SettingsPage.xaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright © 2012 Nokia Corporation. All rights reserved.
Copyright © 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks
or trade names of their respective owners.
Expand Down
10 changes: 9 additions & 1 deletion CameraExplorer/SettingsPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
using System;
/*
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion CameraExplorer/SettingsTemplateSelector.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2012 Nokia Corporation. All rights reserved.
* Copyright © 2012-2013 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
Expand Down
2 changes: 1 addition & 1 deletion Licence.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright � 2012 Nokia Corporation. All rights reserved.
Copyright � 2012-2013 Nokia Corporation. All rights reserved.
Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
Other product and company names mentioned herein may be trademarks or trade names
of their respective owners.
Expand Down
7 changes: 3 additions & 4 deletions release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Camera Explorer v1.1
Camera Explorer v1.2
====================

Camera Explorer application demonstrates the use of the new advanced
Expand All @@ -19,9 +19,7 @@ For more information on implementation and porting, visit the wiki pages:
What's new
----------

Version 1.1.0.0: Implemented tap-to-focus and Lens Picker integration

Version 1.0.0.0: First release of the Camera Explorer
Version 1.2.0.0: Bug fix to tap-to-focus (Ticket #5)


1. Usage
Expand Down Expand Up @@ -150,5 +148,6 @@ describes the usage of PhotoCaptureDevice properties in more detail.
8. Version history
-------------------------------------------------------------------------------

1.2.0.0 Bug fix to tap-to-focus (Ticket #5)
1.1.0.0 Tap-to-focus and Lens Picker integration added.
1.0.0.0 First release

0 comments on commit 3369508

Please sign in to comment.