xricht17 / twpp

TWAIN framework for C++11. Makes development of applications and data sources much easier.
MIT License
39 stars 17 forks source link

about datasource memerxfer bug #29

Closed CrisisPeng closed 4 years ago

CrisisPeng commented 4 years ago

hi! i found that there is a problem about memoryxfer mode,if transfer RGB bitmap,it's ok,while in Gray or BlackWhite bitmap data,it is unnecessary to switch channels for Red and Blue channel。 //BGR BMP -> RGB memory transfer for (; line + 3 < out; line += 3) { std::swap(line[0], line[2]); }

xricht17 commented 4 years ago

Hi.

The example DS does not support anything besides the most basic RGB BMP, e.g. RLE-compressed BMPs will most likely fail miserably. It is not meant as a building block for any production stuff - it is just an example on how TWPP can be used for source development.

CrisisPeng commented 4 years ago

ok,i got it.tks.