On 29/08/2017 at 12:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform:
Language(s) : C++ ;
---------
I have been trying to copy part of a small bitmap to a larger bitmap.
There need no scaling to be involved, but since the Blit function is only available to GeClipmap I have been trying with BaseBitmap::CopyPartTo.
Hoping that this would only copy a part of the source bitmap onto the destination bitmap, leaving the original size of the destination bitmap as is. Apparently, the function isn't meant to be used that way, since the destination bitmap gets the size of the copied part.
Then I tried ScaleBicubic, since no scaling is required I used same values for source as for destination.
The documentation states:
This function can currently only scale down, i.e. the destination needs to be smaller or equal to the source in size
But again, this function doesn't seem to work this way, since the destination size needs to be SMALLER to work, if only by a single pixel, but it needs to be smaller. So the part mentioning "equal" in the documentation is plain rubbish to me.
Having no other options I then tried to work with GeClipmap and using Blit, but got sidetracked and never got a clean solution, so just gave up on the whole thing ... and came looking here for an anwer.
So, how would I go about copying the content of bitmap A which is sized 100x50 to bitmap B, which is sized 150x100? No scaling, and destination x,y at 0,0 in bitmap B is fine.