-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
eclipse-platform/eclipse.platform.swt
#2657Labels
HiDPIA HiDPI-Related Issue or FeatureA HiDPI-Related Issue or FeatureSWTIssue for SWTIssue for SWTregression
Milestone
Description
Mirror ticket for:
Reproducer:
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.widgets.*;
public class ImageWithNoTransparencyMaskOnShell {
public static void main(String[] args) {
System.setProperty("swt.autoScale.updateOnRuntime", "true");
System.setProperty("swt.autoScale", "quarter");
Display display = new Display();
Shell shell = new Shell(display);
shell.setText("Image With No Transparency Mask on Shell");
shell.setSize(600, 600);
Image image = new Image(display, ButtonWithGifImage.class.getResourceAsStream("png-image.png"));
shell.setImage(image);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
image.dispose();
display.dispose();
}
}
Metadata
Metadata
Assignees
Labels
HiDPIA HiDPI-Related Issue or FeatureA HiDPI-Related Issue or FeatureSWTIssue for SWTIssue for SWTregression
Type
Projects
Status
✅ Done