FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 704 : image with negative width / height
Last modified: 2008-08-16 15:10
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
WONTFIX -
Pr
i
ority:
P2
Severity:
enhancement
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
fjen
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-12-18 01:05
... one of my students is drawing lots of images with mirrored counterparts. it would be great to
be able to use a negative width or height in image() for that:
image( img, 0, 0 );
image( img, img.width, 0, -img.width, img.height );
Additional Comment
#1 From fry 2008-08-16 15:10
won't be doing this because it would cause real havoc on the internals of
how images are handled (since it's not just image, it's get, set,
imageMode, etc).
scale(-1, 1) and imageMode(CENTER) should do the trick for now.