Changeset View
Changeset View
Standalone View
Standalone View
src/ksanepreviewimagebuilder.h
Context not available. | |||||
34 | } | 34 | } | ||
---|---|---|---|---|---|
35 | 35 | | |||
36 | class QImage; | 36 | class QImage; | ||
37 | class QByteArray; | ||||
37 | 38 | | |||
38 | namespace KSaneIface | 39 | namespace KSaneIface | ||
39 | { | 40 | { | ||
Context not available. | |||||
44 | 45 | | |||
45 | void start(const SANE_Parameters ¶ms); | 46 | void start(const SANE_Parameters ¶ms); | ||
46 | void beginFrame(const SANE_Parameters ¶ms); | 47 | void beginFrame(const SANE_Parameters ¶ms); | ||
47 | bool copyToImage(const SANE_Byte readData[], int read_bytes); | 48 | // copy a chunk of data to QImage and optionally - to QByteArray with respect to format | ||
49 | bool copyToImage(const SANE_Byte readData[], int read_bytes, QByteArray *retData = nullptr); | ||||
48 | bool imageResized(); | 50 | bool imageResized(); | ||
49 | 51 | | |||
50 | private: | 52 | private: | ||
Context not available. |