Expand description
Image pixel access with boundary handling modes.
Port of agg_image_accessors.h — provides pixel access to image buffers
with different boundary handling: clip (background color), no-clip,
clone (clamp to edge), and wrap (tiling).
Also includes 6 wrap mode structs for coordinate transformation.
Structs§
- Image
Accessor Clip - Image accessor with clipping: returns a background color for out-of-bounds pixels.
- Image
Accessor Clone - Image accessor with clamping: out-of-bounds coordinates snap to edge pixels.
- Image
Accessor NoClip - Image accessor without bounds checking — fastest, assumes all coordinates are valid.
- Image
Accessor Wrap - Image accessor with tiling: wraps coordinates using WrapMode policies.
- Wrap
Mode Reflect - Reflect (mirror) wrapping for tiling.
- Wrap
Mode Reflect Auto Pow2 - Auto-detecting reflect: uses bitwise for power-of-2 sizes, modulo otherwise.
- Wrap
Mode Reflect Pow2 - Power-of-2 reflect wrapping using bitwise operations.
- Wrap
Mode Repeat - Repeat (modulo) wrapping for tiling.
- Wrap
Mode Repeat Auto Pow2 - Auto-detecting repeat: uses bitwise AND for power-of-2 sizes, modulo otherwise.
- Wrap
Mode Repeat Pow2 - Power-of-2 repeat wrapping using bitwise AND.
Traits§
- Image
Source - Trait for image pixel sources used by span image filters.
- Wrap
Mode - Coordinate wrapping mode for tiled image access.