Search code examples
visual-studio-2012sketchup

How to add image in a skp file via Sketchup C sdk?


I have used following Code fragment in Visual Studio with Sketchup-C API:

SUImageRef image = SU_INVALID; SUImageCreateFromFile(&image,"D:\Pictures\3.bmp"); SUEntitiesAddImage(entities, image);

but the Image is not being shown in the formed .skp file

Plus can anyone please tell if there is any Tutorial for explaining Sketchup C API? The Documentation is not helpful


Solution

  • Can you try escaping the backslashes in the path? "D:\\Pictures\\3.bmp"