GTK is a powerful development platform, cross-system, provides a rich and extensive code base, application developers can quickly make their own products.
This month with him to develop a GUI program, is a drawing tool, features include: Image import and export, line editing, drag, delete, adjust the thickness, color, actual situation, shadow, the highlight is to achieve a custom style: sharp-off line (the project will add more Linetype). The sharp-off line is a commonly used drawing line in petroleum exploration data processing. The process of using the GUI is to import a basemap first, then draw lines on top of the basemap or insert other pictures, text, and finally export the whole as a picture. Example of the sample:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/6E/wKioL1Q9KBeB7wNNAAacs0dspcA178.jpg "title=" A.png " alt= "Wkiol1q9kbeb7wnnaaacs0dspca178.jpg"/> Penguin chart is a background map, the Blue line is a sharp-off line, there are some other lines and menus.
The development is based on the Windows GTK + platform, with C language development. After the initial tuning, the results are still satisfied:), now drag the line when the screen is very smooth. will be uploaded to GitHub later on.
This article is from the "some" blog, be sure to keep this source http://2924037.blog.51cto.com/2914037/1564101
Developing a Paint program with GTK (Windows)