Skip to main content

Module image_accessors

Module image_accessors 

Source
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§

ImageAccessorClip
Image accessor with clipping: returns a background color for out-of-bounds pixels.
ImageAccessorClone
Image accessor with clamping: out-of-bounds coordinates snap to edge pixels.
ImageAccessorNoClip
Image accessor without bounds checking — fastest, assumes all coordinates are valid.
ImageAccessorWrap
Image accessor with tiling: wraps coordinates using WrapMode policies.
WrapModeReflect
Reflect (mirror) wrapping for tiling.
WrapModeReflectAutoPow2
Auto-detecting reflect: uses bitwise for power-of-2 sizes, modulo otherwise.
WrapModeReflectPow2
Power-of-2 reflect wrapping using bitwise operations.
WrapModeRepeat
Repeat (modulo) wrapping for tiling.
WrapModeRepeatAutoPow2
Auto-detecting repeat: uses bitwise AND for power-of-2 sizes, modulo otherwise.
WrapModeRepeatPow2
Power-of-2 repeat wrapping using bitwise AND.

Traits§

ImageSource
Trait for image pixel sources used by span image filters.
WrapMode
Coordinate wrapping mode for tiled image access.