GC drawing conditions: drawing can be performed on any class that implements the drawable interface.

Source: Internet
Author: User

Use SWT to draw 2D images

SWT plotting is usually done in two ways: graphics context and draw2d. However, draw2d is a lightweight component based on SWT composite,
Therefore, in terms of efficiency, it cannot reflect the speed advantage of SWT's native code. Therefore, although it is powerful, it is only applicable to applications where drawing is not a system bottleneck.Program. So here I will only introduce the first method.

GC: graphics context

We can draw graphics on any class that implements the org. Eclipse. SWT. Graphics. drawable interface. This includes a control, an image, a display device, or a printing device. Class org. Eclipse. SWT. Graphics. GC is a graphical context that encapsulates all executable drawing operations ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.