I have a georeferenced IRasterLayer which is displaying data with no alpha channel. I am trying to specify a color which should be treated as transparent. In ArcMap it is possible to set a specific color to be transparent, but I have yet to find a working C++ example for ArcObjects 10.x .NET.
I am using the C++ COM interface and have been trying to achieve this by creating a RasterRGBRenderer as per this post. The claimed-working VB.NET sample passes an array of doubles into IRasterStretch.BackgroundValues which is not compatible with the documented 10.1 interface.
Unfortunately documentation in this area is poor, and these samples are very dated. The documentation does not even specify what type of COM VARIANT is needed when VARIANTS are expected.
Please advise how to specify background transparency using C++ in ArcObjects 10.x .NET
أكثر...
I am using the C++ COM interface and have been trying to achieve this by creating a RasterRGBRenderer as per this post. The claimed-working VB.NET sample passes an array of doubles into IRasterStretch.BackgroundValues which is not compatible with the documented 10.1 interface.
Unfortunately documentation in this area is poor, and these samples are very dated. The documentation does not even specify what type of COM VARIANT is needed when VARIANTS are expected.
Please advise how to specify background transparency using C++ in ArcObjects 10.x .NET
أكثر...