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.
<PackageVersion Include="EquirectangularImageViewer.UWP" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="EquirectangularImageViewer.UWP" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=EquirectangularImageViewer.UWP&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=EquirectangularImageViewer.UWP&version=1.0.3
                    
Install as a Cake Tool

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 1,083 4/14/2022
1.0.2 1,027 8/27/2020
1.0.1 896 8/27/2020
1.0.0 873 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