.TH "sources/ui/imagetransparentcolordialog.h" 3 "Version 0.200.1-dev" "QElectroTech" \" -*- nroff -*-
.ad l
.nh
.SH NAME
sources/ui/imagetransparentcolordialog.h
.SH SYNOPSIS
.br
.PP
\fR#include <QDialog>\fP
.br
\fR#include <QImage>\fP
.br
\fR#include <QColor>\fP
.br
\fR#include <QLabel>\fP
.br
\fR#include <QList>\fP
.br

.SS "Classes"

.in +1c
.ti -1c
.RI "class \fBClickableImageLabel\fP"
.br
.RI "The \fBClickableImageLabel\fP 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\&. "
.ti -1c
.RI "class \fBImageTransparentColorDialog\fP"
.br
.RI "The \fBImageTransparentColorDialog\fP 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\&. "
.ti -1c
.RI "struct \fBImageTransparentColorDialog::PickedColor\fP"
.br
.in -1c
.SH "Author"
.PP 
Generated automatically by Doxygen for QElectroTech from the source code\&.
