![]() |
QElectroTech 0.200.1-dev
|
#include <QDialog>#include <QImage>#include <QColor>#include <QLabel>#include <QList>

Go to the source code of this file.
Classes | |
| class | ClickableImageLabel |
| The ClickableImageLabel class Displays an image scaled to fit a reasonable dialog size, but always samples the picked color from the original, full-resolution image at the corresponding coordinate – never from the (possibly smoothly interpolated, and therefore color-blended) scaled-down pixmap being displayed, which would make the picked color subtly wrong for exactly the pixels near an edge where it matters most. More... | |
| class | ImageTransparentColorDialog |
| The ImageTransparentColorDialog class Lets the user click directly on a preview of the image to sample one or more colors – each click adds to the set rather than replacing the previous pick – each shown as its own row: a colour swatch, a slider for that colour's own tolerance right next to it, and a remove button. Each colour keeps its own tolerance rather than sharing one: a white background and a grey border rarely need the same looseness of match, and forcing one tolerance onto both meant either the background left ragged edges or the border ate into content near it. A live checkerboard-backed preview of the combined result updates as any slider moves. A self-contained modal dialog rather than a diagram-level "click the canvas to pick" interaction mode, since this needs neither undo-during-drag nor coexistence with other tools; it only ever needs a handful of clicks, evaluated against a pixmap the caller already has in hand. More... | |
| struct | ImageTransparentColorDialog::PickedColor |