Transkribus / TranskribusSwtGui

Note: the repo has been moved to https://gitlab.com/readcoop/Transkribus/TranskribusSwtGui
GNU General Public License v3.0
18 stars 4 forks source link

Image rendering/painting very slow on Windows machines #189

Closed jkloe closed 6 years ago

jkloe commented 6 years ago

Seems to be an issue with the advanced graphics system GDI+ on Windows systems which is not hardware accelerated. Rendering time is not a problem on other systems (Linux and Mac).

Possible solution: render image into different graphcis context and apply transformations directly.

jkloe commented 6 years ago

Problem should be fixed with commit 6234f2f66c0823d81463d1af6bdd0efe8564a6d6

Exception: rotation is still performed with the usual transformations, which slows down operations if a rotation is set.

kahlep commented 6 years ago

The Canvas background is white for me since this commit and setting it (https://github.com/Transkribus/TranskribusSwtGui/blob/754d1decbd87f217579177f53194c14448a41020/src/main/java/eu/transkribus/swt_gui/canvas/SWTCanvas.java#L144), e.g. via config.properties canvasBackgroundColor, has no effect anymore.

kahlep commented 6 years ago

There is an issue with image scaling when using the new paint() method. Undo changes from 2b87b60 and open trpProd docId = 42727, page 1 to reproduce

kahlep commented 6 years ago

Works for me with latest commit! Thanks