Skip to content

Migration ​

ChromaFx removed several Structure.Sketching-era APIs. Prefer Mutate / Clone, typed encoders, and ImageFormats — nothing is marked obsolete; call sites must update.

RemovedUse instead
img.Apply(...) / img.Apply<T>()img.Mutate(c => c.Invert()) / c.Apply(filter)
img.Process(...) / ImagePipelineimg.Mutate / Clone
ImageOperatorExtensions (BrightnessUp, …)Clone/Mutate + context ops
img.Copy()img.Clone()
img.Save(path) → boolvoid (throws on failure)
IImageFormat.Encode → boolvoid (throws on failure)
LoadAnimation(path)Animation.Load(path)
FormatManager / ManagerImageFormats.Register
IFormatIImageFormat
ManagedFormats enum, including WebP / Avif / JpegXlImageFormatKey. Managed ids stay on ManagedFormats. Native ids are NativeFormats
FileFormats (format id holder)ManagedFormats (same members; registry remains ImageFormats)
ChromaFx.Processing.Filters.Interfaces.IFilterChromaFx.Processing.Filters.IFilter
ResamplingFiltersAvailableResamplingFilter in ChromaFx.Processing.Filters.Resampling
FilterList.Filters[…]ResamplingKernels.Create(…)
ChromaFx.Core.ExtensionMethods.ExtensionsChromaFx.Core.FloatExtensions
ChromaFx.Core.Colors.ColorSpaces.*ChromaFx.Core.Colors.*
Public format types as the only APIPrefer ImageFormats / typed encoders (BmpFormat etc. remain public for advanced use)
TemperatureKelvinTint (same Helland math; illuminant tint, not white balance). Pair with Tint for green↔magenta. Use WhiteBalance / AutoWhiteBalance for photographic correction.
csharp
// Before
img.Apply<Invert>();
img.Save("out.png"); // bool

// After
img.Mutate(c => c.Invert());
img.Save("out.png"); // throws on failure

See also Processing and Formats & encoders.

Released under the Apache License 2.0.