THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/04/2005 at 08:08, xxxxxxxx wrote:
Cinema 4D Version:
I've a problem with the ScaleBicubic()-function of BaseBitmap. Is it meant that the function doesnt scale and copy the alpha-channels, or is it a bug?
The ScaleIt()-function scales and copies the alpha-channels well. Why not the bicubic-function?
many thanks in advance!
On 03/05/2005 at 02:41, xxxxxxxx wrote:
I can't confirm this in 9.1. As long as the alpha channel exists in the destination (AddChannel() has been called), the alpha is scaled as well:
bm->Clear(30, 50, 80);
LONG achn = bm->AddChannel(TRUE, TRUE);
for (LONG x = 0; x < 32; ++x)
for (LONG y = 0; y < 32; ++y)
bm->SetAlphaPixel(achn, x, y, x+2*y);
bm->ScaleBicubic(bm2, 0, 0, 31, 31, 0, 0, 63, 63);