[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] alpha blended shell
|
Thanks a lot for the quick response !
Yes, my bad, I am using setBackgroundImage() and I'm aware of the recently introduced Shell.setAlpha() and its limitation.
I believe my question is what those system calls be on win32.
I'll try my luck on eclipse.platform.swt as well.
Thanks again,
Avi
On Wed, Feb 25, 2009 at 2:25 PM, Steve Northover
<Steve_Northover@xxxxxxxxxx> wrote:
Avi! Don't wait 2 weeks to contact
us.
Shell provides a constant alpha only.
That is, Shell.setAlpha() takes an alpha value between 0 and 255.
Shell.setImage() sets the icon for the shell, not the image for the
shell. If you are using setBackgroundImage(), this will fill the
background of a control with an image, but won't make the control itself
respect the transparency of the image.
Summary: I don't think you can
get what you want from SWT API. You will need to make low level operating
system calls on win32 and the Mac. On GTK , it might be possible
using newer GTK calls and when running the a compositing window namnager.
Finally, you should be asking these
questions on eclipse.platform.swt.
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_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev