Merge lp://staging/~andrea-gualano/a4/rendering into lp://staging/a4
Proposed by
Andrea Gualano
Status: | Merged |
---|---|
Merged at revision: | 6 |
Proposed branch: | lp://staging/~andrea-gualano/a4/rendering |
Merge into: | lp://staging/a4 |
Diff against target: |
27 lines (+13/-3) 1 file modified
a4lib/app.py (+13/-3) |
To merge this branch: | bzr merge lp://staging/~andrea-gualano/a4/rendering |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Corbellini | Approve | ||
Review via email:
|
Description of the change
Keep a region of interest centered and zoomed, preserving aspect ratio.
The rendering has been moved to the render method; currently the call to render() is hardcoded to show the full image, but you can change the call to self.render(
To post a comment you must log in.
Hi and thanks for your branch. It looks fine, but I have a question: if I make the window smaller than the image, why the image is kept at its original size? Is it just a flaw or the desired behavior?
Also, please follow the naming conventions described in PEP8 (scaleX => scale_x) and add a docstring to render().