EquirectangularImageViewer.UWP 1.0.2

UWP 360 Image Viewer with support for Equirectangular images

Install-Package EquirectangularImageViewer.UWP -Version 1.0.2
dotnet add package EquirectangularImageViewer.UWP --version 1.0.2
<PackageReference Include="EquirectangularImageViewer.UWP" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EquirectangularImageViewer.UWP --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EquirectangularImageViewer.UWP, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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.2

// Install EquirectangularImageViewer.UWP as a Cake Tool
#tool nuget:?package=EquirectangularImageViewer.UWP&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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;
}

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;
}

Release Notes

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2 205 8/27/2020
1.0.1 125 8/27/2020
1.0.0 122 8/27/2020