Expand description
Image editing — layers, brushes, selection, filters, masks, colour, vector.
~40 required functions. This module provides the data structures and deterministic operations for image editing.
Structs§
- Brush
Stroke - A brush stroke — sequence of points with size and colour.
- Filter
Plan - Image
Document - An image document with multiple layers.
- Image
Layer - A layer in an image document.
- Image
Limits - Selection
- A selection region.
Enums§
- Blend
Mode - Blend mode for layer compositing.
- Image
Error - Image
Filter - Image filter type.
- Image
Filter Op - Selection
Shape
Functions§
- apply_
filter - Legacy normalized-intensity convenience operation on a valid bounded layer. Completed mappings: blur sigma=4i; sharpen sigma=1/amount=i; hue=360i degrees; emboss azimuth=135 degrees/strength=i. Other operations retain their established semantics. Use try_apply_image_filter for typed, fallible edits. Panics on malformed/out-of-budget input for the four completed mappings.
- composite_
into - Compose into caller-owned storage. Every refusal occurs before the first write.
- filter_
plan - Check dimensions, parameters, work, and resident buffer budget without allocating.
- filter_
rgba8_ into - Filter into caller-owned output. Every error is returned before output changes.
- try_
apply_ image_ filter - Cold checked adapter. All admission precedes allocation and source mutation.
- validate_
document - Validate the complete source, including hidden layers, before writing output. Returns the exact number of document pixels required in the caller buffer.