FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 372 : copy() doesn't work correctly in JAVA2D mode...P3D mode OK.
Last modified: 2007-02-03 14:12
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
milesmeow
Assigned To:
fry
Attachment
Type
Created
Size
Actions
My code and .jpg for the bug I'm describing.
application/x-zip-compressed
2006-07-15 21:59
85.78 KB
Description
: Opened: 2006-07-13 14:24
PImage img;
size(200,200);
//size(200,200, P3D); //this works correctly
img = loadImage("paint.jpg"); //load your own jpeg please
image(img, 0, 0);
copy(15, 25, 10, 10, 35, 25, 50, 50); //copying a 10x10 area to a 50x50 area...
For some reason when in P2D mode, copy() draws the non-scaled copied pixels
ON TOP of the scaled version...so you'll see a pixelated region(b/c it's
been scaled up) and the non-scaled version in the upperleft hand corner of
the pixelated region.
Additional Comment
#1 From fry 2006-07-15 15:34
could you post the actual sketch that shows this? specifically, the code
below with the paint.jpg file that you're using so i can test it out? use
tools -> archive sketch to make a zip file, and then attach it to the bug
report. thanks.
Additional Comment
#2 From milesmeow 2006-07-15 21:59
edit
]
My code and .jpg for the bug I'm describing.
Additional Comment
#3 From fry 2006-07-16 05:46
k, i'll look into this, thanks for posting the sketch.
fwiw, it affects JAVA2D mode--P2D doesn't exist yet.
Additional Comment
#4 From fry 2007-02-03 14:12
found and fixed for 0124. a silly error in PGraphicsJava2D. thanks for the
demo sketch.