Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323329 - Snippet139.java can't rotate image whose height/width are odd pixels
Summary: Snippet139.java can't rotate image whose height/width are odd pixels
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-22 14:38 EDT by tutimura CLA
Modified: 2016-10-18 16:07 EDT (History)
2 users (show)

See Also:


Attachments
Fix patch (1.49 KB, patch)
2010-08-22 14:40 EDT, tutimura CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tutimura CLA 2010-08-22 14:38:52 EDT
Build Identifier: swt-3.5.2-gtk-linux-x86.zip

rotate/flip methods in Snippet139.java do not consider about scanlinePad.
They fail to convert a image whoes height and/or width are not multiples of 8.

I'll attach a fix patch.

Reproducible: Always

Steps to Reproduce:
1. Rewrite Snippet139.java 'Image(display, 50, 30)' -> 'Image(display, 51, 31)'
2. javac -cp .:swt-debug.jar org/eclipse/swt/snippets/Snippet139.java
3. java -cp .:swt-debug.jar org/eclipse/swt/snippets/Snippet139
Comment 1 tutimura CLA 2010-08-22 14:40:28 EDT
Created attachment 177184 [details]
Fix patch
Comment 2 Eric Williams CLA 2016-10-18 16:07:27 EDT
I cannot reproduce this issue.