Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » All black pixels when using gc.print(image) / copyToArea sind Windows 10 1809
All black pixels when using gc.print(image) / copyToArea sind Windows 10 1809 [message #1807639] Wed, 05 June 2019 12:55
Stefan Murawski is currently offline Stefan MurawskiFriend
Messages: 3
Registered: February 2014
Junior Member
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) {
        Image image = null;
        if(imgShell == null){
            imgShell = new Shell(control.getDisplay(), SWT.NO_TRIM);
        Composite oldParent = control.getParent();
        Point size = control.getSize();
        image = new Image(control.getShell().getDisplay(), size.x, size.y);
        GC gc = new GC(image);

        //gc.drawString("Image",size.x/2, size.y/2, true);
        return image;

I updated my application from oxygen to eclipse-rcp-1903 and this problem persists.

The gc.drawString line works and will write the words "Image" onto the Image.
Previous Topic:TIFF image too large to display?
Next Topic:SWT Composite to java.awt.Graphics2D object for creating vector graphics
Goto Forum:

Current Time: Sat Apr 17 14:43:13 GMT 2021

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

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

Back to the top