Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] alpha blended shell

Been banging my head against this for over 2 weeks now...

I'm working on an SWT app that is running on Windows only (for now).
This application uses a PNG image as the background for the main shell (i.e. shell.setImage(img) in conjunction with SWT.NO_TRIM).
The PNG image used as the background has 8-bit per pixel alpha transparency values which I can see when examining its imageData .

The only issue being is that whatever I do I can't get the alpha transparency to kick in and show different alpha levels for different pixels.

In other words, I need a way to do alpha blending of the PNG image with the background on every repaint.

Thanks in advance for any tip/idea,
Avi

Back to the top