Migration
ChromaFx removed several Structure.Sketching-era APIs. Prefer Mutate / Clone, typed encoders, and ImageFormats — nothing is marked obsolete; call sites must update.
| Removed | Use instead |
|---|---|
img.Apply(...) / img.Apply<T>() | img.Mutate(c => c.Invert()) / c.Apply(filter) |
img.Process(...) / ImagePipeline | img.Mutate / Clone |
ImageOperatorExtensions (BrightnessUp, …) | Clone/Mutate + context ops |
img.Copy() | img.Clone() |
img.Save(path) → bool | void (throws on failure) |
IImageFormat.Encode → bool | void (throws on failure) |
LoadAnimation(path) | Animation.Load(path) |
FormatManager / Manager | ImageFormats.Register |
IFormat | IImageFormat |
ManagedFormats enum, including WebP / Avif / JpegXl | ImageFormatKey. Managed ids stay on ManagedFormats. Native ids are NativeFormats |
FileFormats (format id holder) | ManagedFormats (same members; registry remains ImageFormats) |
ChromaFx.Processing.Filters.Interfaces.IFilter | ChromaFx.Processing.Filters.IFilter |
ResamplingFiltersAvailable | ResamplingFilter in ChromaFx.Processing.Filters.Resampling |
FilterList.Filters[…] | ResamplingKernels.Create(…) |
ChromaFx.Core.ExtensionMethods.Extensions | ChromaFx.Core.FloatExtensions |
ChromaFx.Core.Colors.ColorSpaces.* | ChromaFx.Core.Colors.* |
| Public format types as the only API | Prefer ImageFormats / typed encoders (BmpFormat etc. remain public for advanced use) |
Temperature | KelvinTint (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 failureSee also Processing and Formats & encoders.