[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: GC: Working with setAlpha

Ok, it doesn't seem to work yet:

http://www.eclipsezone.com/eclipse/forums/t93709.html


Andreas schrieb:
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