- 论坛徽章:
- 0
|
原文链接
http://www.eclipse.org/articles/Article-SWT-graphics/SWT_graphics.html
The package org.eclipse.swt.graphics contains classes that allows management of graphics resources. Graphics can be drawn on anything that implements org.eclipse.swt.graphics.Drawable, which includes org.eclipse.swt.widgets.Control and org.eclipse.swt.graphics.Image. The class org.eclipse.swt.graphics.GC encapsulates all of the drawing API, including how to draw lines and shapes, draw text and images and fill shapes. This article shows how to use a GC to draw onto an Image, or onto a control through its paintEvent callback. The Canvas control, specifically designed for drawing operations, has a number of constructor style bits that allow you to determine when and how painting occurs, and the article shows how to use these.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/4906/showart_17996.html |
|