LibreMetaverse.Imaging.Abstractions
3.2.0
Prefix Reserved
dotnet add package LibreMetaverse.Imaging.Abstractions --version 3.2.0
NuGet\Install-Package LibreMetaverse.Imaging.Abstractions -Version 3.2.0
<PackageReference Include="LibreMetaverse.Imaging.Abstractions" Version="3.2.0" />
<PackageVersion Include="LibreMetaverse.Imaging.Abstractions" Version="3.2.0" />
<PackageReference Include="LibreMetaverse.Imaging.Abstractions" />
paket add LibreMetaverse.Imaging.Abstractions --version 3.2.0
#r "nuget: LibreMetaverse.Imaging.Abstractions, 3.2.0"
#:package LibreMetaverse.Imaging.Abstractions@3.2.0
#addin nuget:?package=LibreMetaverse.Imaging.Abstractions&version=3.2.0
#tool nuget:?package=LibreMetaverse.Imaging.Abstractions&version=3.2.0
▗▖ ▄ ▗▖ ▄▄▄ ▗▞▀▚▖▗▖ ▗▖▗▞▀▚▖ ■ ▗▞▀▜▌▄ ▄ ▗▞▀▚▖ ▄▄▄ ▄▄▄ ▗▞▀▚▖
▐▌ ▄ ▐▌ █ ▐▛▀▀▘▐▛▚▞▜▌▐▛▀▀▘▗▄▟▙▄▖▝▚▄▟▌█ █ ▐▛▀▀▘█ ▀▄▄ ▐▛▀▀▘
▐▌ █ ▐▛▀▚▖█ ▝▚▄▄▖▐▌ ▐▌▝▚▄▄▖ ▐▌ ▀▄▀ ▝▚▄▄▖█ ▄▄▄▀ ▝▚▄▄▖
▐▙▄▄▖█ ▐▙▄▞▘ ▐▌ ▐▌ ▐▌
▐▌
LibreMetaverse.Imaging.Abstractions
The image type and the one-method codec interface that let LibreMetaverse work with pictures without choosing an imaging library for you. Texture code decodes through ITextureCodec; you decide what sits behind it.
Archiving · Utilities · Voice.Vivox · Voice.WebRTC
│ built on the client
LibreMetaverse the client: login, managers, inventory
│
Transport UDP socket, reliable circuit, throttle
│
Protocol packets and capability messages
│
Assets the offline data model
├── ModelFormats · Rendering.MeshFoundry · Rendering.Simple
│
StructuredData · [Imaging.Abstractions]
│
Types UUID, vectors, quaternions, colors
on their own: PrimMesher · Imaging.Skia · RLV · LslTools
A name in brackets is this package. Packages use the ones beneath them; the Depends on section below is exact.
What is in it
ManagedImage: a picture held as separate red, green, blue, alpha and bump channels, the shape Second Life's textures and bakes have. It can convert between channel layouts, resize (nearest neighbor or bilinear), clone and export raw bytes.ITextureCodec:ManagedImage Decode(Stream stream), which turns the bytes of a PNG, JPEG, BMP or whatever your codec reads into aManagedImage.
Second Life's own JPEG 2000 textures are decoded by LibreMetaverse.Assets; the codec is for the other formats that arrive with a model or an upload.
Plugging one in
LibreMetaverse.Imaging.Skia is a ready-made codec built on SkiaSharp. To use something else, implement the interface:
using LibreMetaverse.Imaging;
public sealed class FlatGreyCodec : ITextureCodec
{
public ManagedImage Decode(Stream stream)
{
// A real codec reads the stream with the imaging library of your choice.
// This one ignores it and returns a 2 x 2 grey picture.
var image = new ManagedImage(2, 2, ManagedImage.ImageChannels.Color);
Array.Fill(image.Red, (byte)128);
Array.Fill(image.Green, (byte)128);
Array.Fill(image.Blue, (byte)128);
return image;
}
}
Use it when
You are writing code that needs to accept an image decoder (a loader, a renderer, an exporter) and do not want to pin your callers to one. If you only need to decode, reference LibreMetaverse.Imaging.Skia instead.
Depends on
.NET Standard 2.1, .NET Framework 4.8.1, and .NET 8, 9 and 10, with no dependencies.
Install
dotnet add package LibreMetaverse.Imaging.Abstractions
More
- Source, issues and discussion: https://github.com/cinderblocks/libremetaverse
- Moving from 3.1: the migration guide
- License: BSD-3-Clause
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8.1
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on LibreMetaverse.Imaging.Abstractions:
| Package | Downloads |
|---|---|
|
LibreMetaverse
LibreMetaverse is a .NET client library for connecting to and interacting with Second Life, OpenSimulator, and compatible virtual world servers. Provides networking, inventory, avatar, asset, and world management APIs. |
|
|
LibreMetaverse.PrimMesher
Prim meshing library for LibreMetaverse that generates 3D geometry from Second Life primitive object parameters, supporting box, cylinder, torus, sphere, ring, tube, and sculpt prim types. |
|
|
LibreMetaverse.Rendering.MeshFoundry
Modern mesh rendering library for LibreMetaverse. Generates renderable geometry from Second Life prims, sculpts, and mesh assets with correct normal decoding, skin weight support, and TexCoord1/NormalizedScale for PBR. |
|
|
LibreMetaverse.Imaging.Skia
SkiaSharp-backed ITextureCodec implementation for LibreMetaverse — decodes arbitrary image formats (PNG, JPEG, BMP, etc.) into ManagedImage. Reference this package to give ColladaLoader, PrimMesher's file-decode helpers, or your own code a working ITextureCodec. |
|
|
LibreMetaverse.Assets
The data model of LibreMetaverse that needs no connection to a grid: asset types, glTF documents, primitives and their textures, inventory items, the avatar skeleton and appearance definitions, model import data and its upload checks, and logging. Pulled in by the LibreMetaverse package; reference it alone to work with assets and models offline. |
GitHub repositories
This package is not used by any popular GitHub repositories.