| Summary: | GC.drawImage(Image, int, int, int, int, int, int, int, int) not work properly except source area is not attached to corners of image. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jeeeyul Lee <jeeeyul> | ||||||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | ericwill, sravankumarl | ||||||||
| Version: | 4.4 | Keywords: | triaged | ||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Linux-GTK | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
It is the reason that why trim stack image border is broken in Linux. Hi, Can you please add the sample snippet to reproduce this problem? Thanks Sravan Created attachment 241295 [details]
Expected Result
Created attachment 241296 [details]
Actual Result on Linux
I created a gist https://gist.github.com/jeeeyul/9798697 The result of gist should have to be https://bugs.eclipse.org/bugs/attachment.cgi?id=241295 However it looks like https://bugs.eclipse.org/bugs/attachment.cgi?id=241296 All other platforms results as expected. (In reply to Jeeeyul Lee from comment #5) > I created a gist https://gist.github.com/jeeeyul/9798697 > The result of gist should have to be > https://bugs.eclipse.org/bugs/attachment.cgi?id=241295 > > However it looks like https://bugs.eclipse.org/bugs/attachment.cgi?id=241296 > > All other platforms results as expected. Hi, I tried with the above snippet with the latest version of eclipse with gtk 3.8 on RHEL 7 and ubuntu 13.10. But I am not able to reproduce the problem. Can you please suggest me how to reproduce? thanks Sravan (In reply to Sravan Kumar Lakkimsetti from comment #6) > (In reply to Jeeeyul Lee from comment #5) > > I created a gist https://gist.github.com/jeeeyul/9798697 > > The result of gist should have to be > > https://bugs.eclipse.org/bugs/attachment.cgi?id=241295 > > > > However it looks like https://bugs.eclipse.org/bugs/attachment.cgi?id=241296 > > > > All other platforms results as expected. > > Hi, > > I tried with the above snippet with the latest version of eclipse with gtk > 3.8 on RHEL 7 and ubuntu 13.10. But I am not able to reproduce the problem. > Can you please suggest me how to reproduce? > > thanks > Sravan I also cannot reproduce the issue on Fedora 28, 4.8 M7, and GTK3.22. |
Created attachment 241079 [details] Shows GC.drawImage(Image, int, int, int, int, int, int, int, int) not work properly except source area is not attached to corners of image. When source area is top-left, top-right, bottom-left, bottom-right corner of given image, it works well. However, in the other cases source area is not honored. I tested same code with windows, osx, linux-gtk. Only linux-gtk doesn't work as that I intended. Attachement shows this problem. Left red box is original image, and right one is some kind of 9-patch. You can see only corners are rendered properly.