Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323329

Summary: Snippet139.java can't rotate image whose height/width are odd pixels
Product: [Eclipse Project] Platform Reporter: tutimura
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: ericwill, tutimura
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix patch none

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.