Classified Renderer -- "flip" color ramp options?

551
2
01-15-2013 05:49 AM
JamesCrandall
MVP Frequent Contributor
I am implementing IRasterClassifyColorRampRenderer using an EqualInterval class breaks and manually setting min/max and number of classes for each raster loaded in an ArcScene document.  All works exactly as expected but I have a request to "flip" the color ramp and I cannot seem to find how to get this done. 

Manually, I would just access the symbology via properties menu, select all of the classes/symbols, right-click and choose "flip colors".

Of note: I am not manipulating the IColorRamp at all, rather I am enumerating thru the StyleGallery and selecting one by name (eg. "Blue-Dark to Cyan-Light").

So, with all this said...  Can I simply issue a .FlipColorRamp somehow???  🙂

Prefer VisualBasic but can probably figure out the C# if you have an example.

Thanks,
James
0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor
James,

Search for IRasterStretch2 Interface it has an invert method, not used it but my money is on that!

Duncan
0 Kudos
JamesCrandall
MVP Frequent Contributor
Thanks, Duncan -- I will take a look.

Take Care,
j
0 Kudos