EquirectangularImageViewer.UWP
1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EquirectangularImageViewer.UWP --version 1.0.1
NuGet\Install-Package EquirectangularImageViewer.UWP -Version 1.0.1
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.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EquirectangularImageViewer.UWP --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EquirectangularImageViewer.UWP, 1.0.1"
#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.1 // Install EquirectangularImageViewer.UWP as a Cake Tool #tool nuget:?package=EquirectangularImageViewer.UWP&version=1.0.1
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;
}
Product | Versions 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.
-
UAP 10.0
- directxtk_uwp (>= 2020.8.15.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial Release.