Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Register
    • Login

    basebitmap::ScaleBicubic ignores alpha?

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 240 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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");
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post