FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   0068 replicate(srcImg, ...)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: 0068 replicate(srcImg, ...)  (Read 504 times)
eddie

WWW Email
0068 replicate(srcImg, ...)
« on: Mar 12th, 2004, 7:10am »

I can't seem to get replicate(srcImg, sx1, sy1, sx2, sy2, dx1, dy1, dx2, dy2) to work correctly with a tall aspect ratio source image in version 0068.
 
example: http://lightmoves.net/stuff/imagestrip/
 
The code at the beginning of the BImage.blit_resize(BImage, ...) method compares sy2 with bimage.width.  Should this instead compare with bimage.height?  Might just be one of those pernicious cut&paste bugs.
 
Pardon if this has already been discussed.  I couldn't find a thread about it.
 
toxi

WWW
Re: 0068 replicate(srcImg, ...)
« Reply #1 on: Mar 12th, 2004, 3:36pm »

you're totally right of course, fixed for next release! thanks for digging that up
 

http://toxi.co.uk/
kensuguro


Re: 0068 replicate(srcImg, ...)
« Reply #2 on: Nov 8th, 2004, 10:08am »

I've been having a similar problem..
 
I was simply trying to resize a 160x120 image to 320x240, and I get array out of bounds.  I can resize 160x120 to 160x120 just fine.
 
Code:

    motion.replicate(image, 0, 0, 120, 80, 0, 0, 120, 80);

 
works just fine, while
Code:

    motion.replicate(image, 0, 0, 120, 80, 0, 0, 300, 81 );

 
gives out of bounds.  Does this sound like the same problem?
« Last Edit: Nov 8th, 2004, 10:12am by kensuguro »  
Pages: 1 

« Previous topic | Next topic »