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

    Bicubic Scale - Bug?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 156 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 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.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post