[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] GC: Working with setAlpha
|
- From: Andreas <a.rettig@xxxxxx>
- Date: Fri, 04 Jul 2008 10:35:46 +0000
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.14 (Windows/20080421)
It seems that I still don't understand the principle of drawing in SWT...
I always thougt it behaves like a statemachine like OpenGL - that means
i I call setAlpha(100), all following operations are drawn with alpha 100.
gc.setAlpha(100);
gc.fillRectangle(0, 0, 10,10);
Should draw a transparent Rectangle filled with the actual Background
Color, shouldn't it?
But everything following gc.setAlpha() isn't drawn at all.
What am I doing wrong?
(Windows XP SP2, actual SWT Version)
Thanks in advance
Andreas