Changeset View
Changeset View
Standalone View
Standalone View
src/ksaneviewer.h
Context not available. | |||||
41 | explicit KSaneViewer(QImage *img, QWidget *parent = nullptr); | 41 | explicit KSaneViewer(QImage *img, QWidget *parent = nullptr); | ||
---|---|---|---|---|---|
42 | ~KSaneViewer(); | 42 | ~KSaneViewer(); | ||
43 | 43 | | |||
44 | void setQImage(QImage *img); | 44 | // is_preview_img defines the type of image (preview or last scan) | ||
45 | // clear_selection should be true if only new preview image is set that requires new content detection | ||||
46 | void setQImage(QImage *img, bool is_preview_img = true, bool clear_selection = true); | ||||
45 | void updateImage(); | 47 | void updateImage(); | ||
46 | /** Find selections in the picture | 48 | /** Find selections in the picture | ||
47 | * \param area this parameter determine the area of the reduced sized image. */ | 49 | * \param area this parameter determine the area of the reduced sized image. */ | ||
Context not available. | |||||
66 | void clearActiveSelection(); | 68 | void clearActiveSelection(); | ||
67 | void clearSavedSelections(); | 69 | void clearSavedSelections(); | ||
68 | void clearSelections(); | 70 | void clearSelections(); | ||
71 | // defines if viewer display preview image or last scanned image | ||||
72 | void setDisplayingPreview(bool is_preview); | ||||
69 | 73 | | |||
70 | /** This function is used to darken everything except what is inside the given area. | 74 | /** This function is used to darken everything except what is inside the given area. | ||
71 | * \note all parameters must be in the range 0.0 -> 1.0. | 75 | * \note all parameters must be in the range 0.0 -> 1.0. | ||
Context not available. |