wanquard / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

setViewPort() #223

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Can you add a setViewPort() function?
Function will take 4 parameters x1, y1, x2, y2 defining a rectangle. After 
calling setViewPort() all drawing will start from x1, y1 (if I draw something 
to 0,0 it will be drawn at x1, y1 on a display) and will be confined in the 
rectangle, it's good for drawing scrollable views, popup windows, etc...

Since you already have clipping implemented it shouldn't be very difficult to 
implement this.

Thanks

Original issue reported on code.google.com by cane...@gmail.com on 16 Dec 2013 at 8:56

GoogleCodeExporter commented 8 years ago
Thanks for adding this issue. Indeed a usefull feature. However existing clip 
procedures are optimized for x1 = 0, which make reuse impossible.

Technical note: Could be implemented as intermediate device like rot90 
procedures.

Original comment by olikr...@gmail.com on 16 Dec 2013 at 9:54

GoogleCodeExporter commented 8 years ago
maybe i should collect topics for version 2.x of U8glib

Original comment by olikr...@gmail.com on 22 Jan 2014 at 8:18

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 22 Jan 2014 at 8:19