How wladekw/imgeffects works
ImgEffects Pro is a desktop image-effects editor: a user loads an image, adjusts resize and effect settings, processes it with a selected dithering method, previews the result, and can save it. The GUI also exposes grayscale, RGB, duotone colors, contrast, and zoom. The core provides Floyd–Steinberg diffusion and Bayer ordered dithering, backed by Bayer threshold matrices. Some GUI and core source was excerpted only partially; the Bayer GUI call and save implementation are therefore not asserted as verified relationships.
Main entry points: main.rs Editor controls · bayer.rs Bayer dithering · floyd_steinberg.rs Floyd–Steinberg · lib.rs Core API
Components 11
Desktop editor
- Editor controls
gui/src/main.rs - Image loading
gui/src/main.rs - Image preparation
gui/src/main.rs - Algorithm dispatch
gui/src/main.rs - Image preview
gui/src/main.rs - Image saving
gui/src/main.rs
Dithering core
- Core API
core/src/lib.rs - Floyd–Steinberg
core/src/dither/diffusion/floyd_steinberg.rs - Bayer dithering
core/src/dither/ordered/bayer.rs - Bayer matrices
core/src/dither/ordered/bayer_matrices.rs
Other components
- User
Connections 11
- User → Editor controls: sets options
gui/src/main.rs - Editor controls → Image loading: loads image
gui/src/main.rs - Editor controls → Image preparation: triggers effects
gui/src/main.rs - Image preparation → Algorithm dispatch: dispatches image
gui/src/main.rs - Algorithm dispatch → Floyd–Steinberg: calls dithering
gui/src/main.rs - Algorithm dispatch → Bayer dithering: selects method
- Floyd–Steinberg → Core API: exported through
core/src/lib.rs - Bayer dithering → Core API: exported through
core/src/lib.rs - Bayer dithering → Bayer matrices: reads thresholds
core/src/dither/ordered/bayer.rs - Algorithm dispatch → Image preview: updates result
gui/src/main.rs - Editor controls → Image saving: requests save
gui/src/main.rs