Export symbol block image without backgroud using ObjectARX (Autocad P&ID)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I want to implement a custom tools palette similar to the standard ones in Autocad P&ID and I need to extract the images for the symbols show in the palette.
The post here shows a method to export the image of a block using .NET C#:
However, the .NET approach has some limitations. First of all, the exported images also have a background color (the dark grey one), which is not visible on a standard Autocad palette. Secondly, the image size is hardcoded to 190 x 120 px in the CMLContentSearchPreviews.GetBlockTRThumbnail() method.
What I would like to know is if it is possible to export the block images using C++ / ObjectARX, but without the background color, i.e. with transparent backgroud. The size does not really matter as long as it is above 96 x 96 px.
I attached an image with the standard Autocad palette, to make it clear what I want to achieve.
Thanks,
Mihail