That I need to import an image e.g.PNG or JPG into a dwg file, according to the example, I have instantiad a CadRasterImageDef object and set a locale file as its file name, like : cadRasterImageDef.setFileName(“D:\1.png”);
A CadRasterImage object is created to refer this CadRasterImageDef and added to the cadimage file.
After the cadimage file has been saved, I can see the image imported to the dwg file.
But as a rasterimage, I have only import the reference of the image file, if the “D:\1.png” file have been deleted, I can just see a blank box in the dwg file.
I just want to know that, is it possible to import an image into dwg file, the image should be real embed into the dwg file, as an OLE object or some other thing.