Select to view content in your preferred language

NoData will not work for a value of 0 in my v10 MapControl.

520
0
05-20-2011 11:07 AM
kyleknoche
Emerging Contributor
Hello -

I have a MapControl that is displaying a raster.  When I set the NoData

IRasterProps pProps = (IRasterProps)pRaster;
               
                    pProps.NoDataValue = 0;



The 0 value is just set the lowest color on the color ramp.  If i set it to another value then it does make that pixel value transparent.

Also, I should note that this code worked fine in version 9.2
0 Kudos
0 Replies