Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Using Alpha with Patterns


This feature was just added after SWT 3.1 shipped. See Pattern(Device, float, float, float, float, Color, int, Color, int). You can
specify a alpha value for the start and end colors.

Silenio



Arnaud De Muyser <ademuyser@xxxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

10/28/2005 12:09 PM

Please respond to
"Eclipse Platform SWT component developers list."

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Using Alpha with Patterns






Hi,

I'm trying new SWT 3.1 GC features, incredible, a real big step for graphics !

When I use alpha (setAlpha(100) for example) and use a background or foreground pattern,

pattern is drawn without using current transparency value (I create pattern with png and jpeg images).


How can I paint patterns using alpha transparency ?


Thanks for your help.


Arnaud.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top