EquirectangularImageViewer.UWP 1.0.3

dotnet add package EquirectangularImageViewer.UWP --version 1.0.3
NuGet\Install-Package EquirectangularImageViewer.UWP -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EquirectangularImageViewer.UWP" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EquirectangularImageViewer.UWP --version 1.0.3
#r "nuget: EquirectangularImageViewer.UWP, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EquirectangularImageViewer.UWP as a Cake Addin
#addin nuget:?package=EquirectangularImageViewer.UWP&version=1.0.3

// Install EquirectangularImageViewer.UWP as a Cake Tool
#tool nuget:?package=EquirectangularImageViewer.UWP&version=1.0.3

EquirectangularImageViewer

A UWP 360 image viewer that will wrap your image onto a sphere. You have control over pitch/yaw/roll and also FOV.

Here you can find one example of usage. On Loaded:

XAML:

<Page x:Class="<YOUR_CLASS_NAME_HERE>"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:eq="using:EquirectangularImageViewer"
      Loaded="Page_Loaded"
      mc:Ignorable="d">

    <Grid>
        <eq:EquirectangularViewer x:Name="PanoViewer"
                                  ManipulationMode="All"
                                  ManipulationDelta="PanoViewer_ManipulationDelta" />
    </Grid>
</Page>

C#


private async void Page_Loaded(object sender, RoutedEventArgs e)
{
    var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("<your image file here>"));
    PanoViewer.LoadTexture(file.Path);
}

private void PanoViewer_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
{
    var sensitivity = Sensitivity;

    PanoViewer.Yaw -= (float)e.Delta.Translation.X / (float)sensitivity;
    PanoViewer.Pitch -= (float)e.Delta.Translation.Y / (float)sensitivity;
    PanoViewer.Roll += e.Delta.Rotation / (float)sensitivity;
    PanoViewer.FieldOfView *= e.Delta.Scale / (float)sensitivity;
}

Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 842 4/14/2022
1.0.2 903 8/27/2020
1.0.1 765 8/27/2020
1.0.0 748 8/27/2020

A UWP 360 image viewer that will wrap your image onto a sphere. You have control over pitch/yaw/roll and also FOV. For a breakdown of how it can be used, visit https://github.com/djspider117/EquirectangularImageViewer