ImageDataCollector / ScreenScraping [message #616338] |
Mon, 30 July 2007 15:19 |
Stefan Kuhn Messages: 355 Registered: July 2009 |
Senior Member |
|
|
hi all,
I would like to use VE ability to make a screenshot of a SWT composite
in my GMF Editor. When I looked at the implementation I noticed it is
very platform specific.
Basically I just need following method of
org.eclipse.ve.internal.swt.targetvm.ImageCapture:
protected abstract Image getImage(Control control, int maxWidth, int
maxHeight, boolean includeChildren);
even easier, "Image getImage(Control)" without children would be sufficient.
I found the OS branching stuff in
org.eclipse.ve.internal.swt.ImageDataCollector
looking like:
if (Platform.OS_WIN32.equals(Platform.getOS()))
dataCollectorType =
(...)("org.eclipse.ve.internal.swt.targetvm.win32.ImageCapture ");
else if (Platform.WS_GTK.equals(Platform.getWS())){
....
Is it a good approach to implement the branching stuff and copy the
three classes to make it work? (these classes are not exported in VE). I
also noticed that these classes are 2+ years old, is there already a
replacement?
Is it possible to do it this way? How would you suggest realizing it?
thanks & regards
stefan
|
|
|
Powered by
FUDForum. Page generated in 0.03493 seconds