Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there a way to get context image from Composite?
Is there a way to get context image from Composite? [message #1702854] Sun, 26 July 2015 09:05 Go to next message
Eclipse UserFriend
Since Linux does not support transparent Composite, I want to find a
diverting-method:

As I know, everything is drawing: Label is drawing, Text is drawing, Table
is drawing.......
So I think is it possible to get the context image of Composite (with some
controls on it)?

If I can get the context image of composite with some controls on it,
I can draw this image to a MyTransparentComposite, so it looks just like a
transparent composite.

Is it possible?

Frank
using jre6 on linux
Re: Is there a way to get context image from Composite? [message #1704002 is a reply to message #1702854] Thu, 06 August 2015 14:40 Go to previous messageGo to next message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
SWT does support Transparent background for composite from 4.5 onwards release refer: https://www.eclipse.org/eclipse/news/4.5/M5/#transparent-bg
Refer Snippet365: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java

- Niraj
Re: Is there a way to get context image from Composite? [message #1705640 is a reply to message #1704002] Tue, 18 August 2015 06:13 Go to previous message
Eclipse UserFriend
Thanks.

BTW, I do find a way to get the image-copy of composite: gc.copyArea().

"Niraj Modi" <forums-noreply@xxxxxxxx> 写入消息
news:mpvrkf$oo7$1@xxxxxxxxe.org...
> SWT does support Transparent background for composite from 4.5 onwards
> release refer: https://www.eclipse.org/eclipse/news/4.5/M5/#transparent-bg
> Refer Snippet365:
> http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet365.java
>
> - Niraj
Previous Topic:How to draw a triangle on titlecolumn of table?
Next Topic:Remove hover highlight from table
Goto Forum:
  


Current Time: Fri Mar 29 01:30:50 GMT 2024

Powered by FUDForum. Page generated in 0.03215 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top