How to create a ruler a tool for canvas?
问题 Like the standard paint program in windows, I'm trying to create a very basic sketch canvas program where the the user can select a ruler tool to draw with on the canvas. How do I achieve this? I'm quite a beginner so I'd appreciate if the answer is as simple as possible... Thanks!! 回答1: If I may suggest you could use my easyCanvas library. It's a library that wraps around standard canvas and let you use it as ordinary but adds some handy functionality (GPL3). If this is an option you could