THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/04/2012 at 11:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Hey guys.
I'm trying to learn how to create and paint images using the SDK. But I'm having a hard time getting started.
This is what I have so far:
MultipassBitmap *mbmp = MultipassBitmap::Alloc(1024, 1024, COLORMODE_RGBf); //Create a new bitmap
if (!mbmp) return FALSE;
mbmp->SetPen(1,1,1); //Set the color to white
mbmp->Line(20,20,300,40); //Draw a line
ShowBitmap(mbmp); //Show the bitmap in the picture viewer
MultipassBitmap::Free(mbmp); //Free the memory
All I get is a black 1024x1024 image in the picture viewer.
I can't get my line to show up in it.
What am I doing wrong?
-ScottA