ColorRamp Class

  • ColorRamp
  • class Esri::ArcGISRuntime::ColorRamp

    A ColorRamp object for use in a StretchRenderer. More...

    Header: #include <ColorRamp.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::Object

    Public Functions

    virtual ~ColorRamp() override

    Static Public Members

    Esri::ArcGISRuntime::ColorRamp *create(Esri::ArcGISRuntime::PresetColorRampType presetColorRampType, int size = 256, QObject *parent = nullptr)

    Detailed Description

    Relevant samples:

    • Blend raster layer: Blend a hillshade with a raster by specifying the elevation data. The resulting raster looks similar to the original raster, but with some terrain shading, giving it a textured look.
    • Stretch renderer: Use a stretch renderer to enhance the visual contrast of raster data for analysis.

    Member Function Documentation

    [override virtual] ColorRamp::~ColorRamp()

    Destructor.

    [static] Esri::ArcGISRuntime::ColorRamp *ColorRamp::create(Esri::ArcGISRuntime::PresetColorRampType presetColorRampType, int size = 256, QObject *parent = nullptr)

    Returns a color ramp with predefined color ramp type and size.

    • presetColorRampType - The predefined color ramp type.
    • size - Size of the color ramp. A typical value is 256.
    • parent - The optional parent QObject.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close