Bug 1574 : blend scales when it shouldn't
Last modified: 2010-06-06 07:31




Status:
RESOLVED
Resolution:
DUPLICATE of bug 1482
Priority:
P2
Severity:
normal

 

Reporter:
jluxvu
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2010-06-05 15:38
If you use blend to draw an image it stretches slightly down and to the right even if the
source and dest rectangles match the image exactly. It looks like it gets stretched by one
pixel.

This is in Processing v1.1 on OSX 10.6.

Here is a simple demo. Notice that this image drifts diagonally when it shouldn't.

import processing.video.*;
Capture cam;

void setup() {
size(640,480);
cam = new Capture(this, width, height);
}

void draw() {
PImage previousFrame = get();
cam.read();
image(cam, 0, 0, width, height);
blend(previousFrame, 0, 0, width, height, 0,0, width, height, LIGHTEST);
}
Additional Comment #1 From fry 2010-06-06 07:31


*** This bug has been marked as a duplicate of 1482 ***