FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 935 : PImage cannot be rotated (eclipse)
Last modified: 2008-09-30 12:24
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
depth
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2008-09-30 12:17
rev 0148, osx 10.5.5, JVM 1.5, eclipse 3.3.2
calling rotate(val) before calling image() draws a blank white rect instead
of the PImage.
this bug does not happen from the Processing IDE.
package main;
import processing.core.*;
public class PImageTest extends PApplet {
static final long serialVersionUID = 0;
private PImage img;
public void init () {
super.init();
}
public void setup () {
size(400, 300, P2D);
img = loadImage("arch.jpg");
}
public void draw () {
background(0);
rotate(0.1f);
image(img, 0, 0, 200, 200);
}
public static void main (String args[]) {
PApplet.main(new String[] { "main.PImageTest" });
}
}
Additional Comment
#1 From fry 2008-09-30 12:24
P2D does not exist yet:
http://processing.org/reference/size_.html