If I am drawing a line using:
GC.drawLine(int x1, int y1, int x2, int y2);
How do I change the colour of the line?
I can change the transparency by calling:
gc.setAlpha(150);
But I cannot find method of changing the colour of the line
绘制函数使用前景色绘制:
gc.setForeground(display.getSystemColor(SWT.COLOR_BLUE));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.