basebitmap::ScaleBicubic ignores alpha?
-
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:
User Information:
Cinema 4D Version:
Platform:
Language(s) :---------
Hi there,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!
Greetings
-Philipp Lensing -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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:
AutoAlloc<BaseBitmap> bm; bm->Init(32,32); 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); ShowBitmap(bm); MessageDialog("1"); AutoAlloc<BaseBitmap> bm2; bm2->Init(64,64); bm2->AddChannel(TRUE, TRUE); bm->ScaleBicubic(bm2, 0, 0, 31, 31, 0, 0, 63, 63); ShowBitmap(bm2); MessageDialog("2");