Skip to content

Latest commit

 

History

116 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lucitex

Ex tenuī filo lucis texor

A pure C# image & texture library — decode, encode, and convert between formats.

Test .NET 10 License: MIT Live demo


Quick start

using var sourceStream = File.OpenRead("input.exr");
var sourceCodec = new ExrCodec();
var reader = sourceCodec.OpenReader(sourceStream);

var targetCodec = new PngCodec();
var plan = ConversionPlanner.Plan(reader.Describe(), targetCodec.Capabilities, ConversionPolicy.Preview).Plan!;

using var targetStream = File.Create("output.png");
var writer = targetCodec.CreateWriter(targetStream, plan.TargetDescriptor);
ConversionExecutor.Execute(plan, reader, sourceCodec.Capabilities.SampleByteOrder, writer, targetCodec.Capabilities.SampleByteOrder);

A runnable version of this lives in examples/Lucitex.Example.

About

High-Performance image & texture library for .NET

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages