eclipse-2019-03

ALL black Pixels with SWT since Windows 10 Update 1809 and gc.print() / gc.copyArea(

白昼怎懂夜的黑 提交于 2019-12-11 05:44:53
问题 I have this piece of code that worked throug the ages (kepler to oxygen) for the last 4 Years, Since the Windows 10 1809 update this results in an all black picture. This happens on several PCs. public static Image renderToImage(Control control) { Shell imgShell = new Shell(control.getDisplay(), SWT.NO_TRIM); Composite oldParent = control.getParent(); Point size = control.getSize(); imgShell.setSize(size); control.setParent(imgShell); Image image = new Image(control.getShell().getDisplay(),