Bicubic Scale - Bug?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2005 at 06:46, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) : C++ ;---------
Hi there. I've encountered another problem, and I'm unsure wether this is just me making mistakes or a problem with the SDK...I'm trying to Scale an image, 640x480 to 800x600.
But I don't want the image to be fullsize 800x600 but like a frame inside the 800x600 image. So I tryed to scale the image like this:sourceImage->ScaleBicubic(newImage, 0, 0, 640, 480, 50, 50, 600, 500);
Both images are allocated and initialized.
Now this works fine, as long as the xmin/xmax and ymin/ymax values in the destination don't exceed the 640 / 480. With any of these parameters causing the sum beeing bigger than that - the image gets scaled but the left top corner is always 0,0.
I've played a while whith the settings, tried to copy only a part of the source image - the same result. With the moment the sum of xmin/xmax oder ymin/ymax values of the destination beeing bigger than the xmax/ymax values of the source this effect occours.
I've tryed to scale the image to full 800x600 - no problem there, just when I try to get the black frame around it.