Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am trying to use the company I work for's color scheme in the maps that I am making. I have all the RGB values for the colors, but there are only 10 different shades of each color, while the style manager's ramps need 12 shades. Is there any way to change the number of colors in each color ramp?

share|improve this question
add comment

1 Answer 1

According to the arcobjects documentation it looks like you're stuck with 13 colors ...

IPresetColorRamp is designed to exactly mimic the behavior of ArcView 3.x's color ramps. Thus, it contains exactly 13 colors in a sequence that is defined by the order the colors are defined.

However, looking at the COM categories, it would appear that you might be able to roll your own colorramp, by implementing IColorRamp and the others that the PresetColorRamp coclass implements. You'd also need to write a propertypage class that implements the same interfaces as the PresetColorRampPropertyPage coclass.

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.