Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 286590 Details for
Bug 574182
[GTK3] Label: Incorrect image drawing with 200% zoom
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Snippet to reproduce
ImageScaling.java (text/plain), 783 bytes, created by
Thomas Singer
on 2021-06-14 05:02:18 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Thomas Singer
Created:
2021-06-14 05:02:18 EDT
Size:
783 bytes
patch
obsolete
>import org.eclipse.swt.*; >import org.eclipse.swt.graphics.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class ImageScaling { > > public static void main(String[] args) { > final Display display = new Display(); > > final Image image = new Image(display, 32, 32); > final GC gc = new GC(image); > try { > gc.setBackground(display.getSystemColor(SWT.COLOR_CYAN)); > gc.fillRectangle(0, 0, 32, 32); > } > finally { > gc.dispose(); > } > > final Shell shell = new Shell(display); > shell.setLayout(new GridLayout()); > > final Label label = new Label(shell, 0); > label.setImage(image); > > shell.setSize(400, 300); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > > display.dispose(); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 574182
: 286590 |
286591
|
286592
|
286703