Obsolete Members for Symbol

  • Symbol
  • The following members of class Symbol are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

    Public Functions

    (deprecated) Esri::ArcGISRuntime::TaskWatcher createSwatch(const Esri::ArcGISRuntime::Geometry &geometry, float width, float height, const QColor &backgroundColor = QColor())
    (deprecated) Esri::ArcGISRuntime::TaskWatcher createSwatch(const Esri::ArcGISRuntime::Geometry &geometry, float width, float height, float screenScale, const QColor &backgroundColor = QColor())
    (deprecated) Esri::ArcGISRuntime::TaskWatcher createSwatch(float width, float height, float screenScale, const QColor &backgroundColor = QColor())
    (deprecated) Esri::ArcGISRuntime::TaskWatcher createSwatch(const QColor &backgroundColor = QColor())
    (deprecated) Esri::ArcGISRuntime::TaskWatcher createSwatch(float screenScale, const QColor &backgroundColor = QColor())

    Signals

    (deprecated) void createSwatchCompleted(const QUuid &taskId, const QImage &image)

    Member Function Documentation

    Esri::ArcGISRuntime::TaskWatcher Symbol::createSwatch(const Esri::ArcGISRuntime::Geometry &geometry, float width, float height, const QColor &backgroundColor = QColor())

    This function is deprecated. We strongly advise against using it in new code.

    Creates a swatch image using the provided geometry, width, height, and optional backgroundColor.

    The background color defaults to transparent when the backgroundColor is not provided. The width, height, and geometry coordinate values are measured in device independent pixels (DIPs). This operation will determine the primary screen scale factor for scaling the image size.

    Emits the createSwatchCompleted(QUuid, QImage) signal when the swatch image operation completes.

    Note: The specified geometry is in DIPs, with the point {0,0} located at the centerpoint of the swatch image. The x-axis increases towards the right-hand side of the swatch image. The y-axis increases towards the top of the swatch image. For example, when creating a swatch for a MarkerSymbol, specifying a geometry of {10,10} will draw the marker 10 DIPs up and to the right of the center of the swatch. The geometry type should correspond to the symbol type. The geometry's spatial reference is ignored.

    Esri::ArcGISRuntime::TaskWatcher Symbol::createSwatch(const Esri::ArcGISRuntime::Geometry &geometry, float width, float height, float screenScale, const QColor &backgroundColor = QColor())

    This function is deprecated. We strongly advise against using it in new code.

    Creates a swatch image using the provided geometry, width, height, screenScale, and optional backgroundColor.

    The background color defaults to transparent when the backgroundColor is not provided. The width, height, and geometry coordinate values are measured in device independent pixels (DIPs). This operation will use the provided screenScale parameter to scale the image size.

    Emits the createSwatchCompleted(QUuid, QImage) signal when the swatch image operation completes.

    Note: The specified geometry is in DIPs, with the point {0,0} located at the centerpoint of the swatch image. The x-axis increases towards the right-hand side of the swatch image. The y-axis increases towards the top of the swatch image. for example, when creating a swatch for a MarkerSymbol, specifying a geometry of {10,10} will draw the marker 10 DIPs up and to the right of the center of the swatch. The geometry type should correspond to the symbol type. The geometry's spatial reference is ignored.

    [since Esri::ArcGISRuntime 100.3] Esri::ArcGISRuntime::TaskWatcher Symbol::createSwatch(float width, float height, float screenScale, const QColor &backgroundColor = QColor())

    This function is deprecated. We strongly advise against using it in new code.

    Creates a swatch image using the provided width, height, screenScale, and optional backgroundColor.

    The background color defaults to transparent when the backgroundColor is not provided. The width, and height are measured in device independent pixels (DIPs). This operation will use the provided screenScale parameter to scale the image size.

    Emits the createSwatchCompleted(QUuid, QImage) signal when the swatch image operation completes.

    This function was introduced in Esri::ArcGISRuntime 100.3.

    Esri::ArcGISRuntime::TaskWatcher Symbol::createSwatch(const QColor &backgroundColor = QColor())

    This function is deprecated. We strongly advise against using it in new code.

    Creates a swatch image using the optional backgroundColor.

    The background color defaults to transparent when the backgroundColor is not provided. This operation will determine the primary screen scale factor for scaling the image size.

    Emits the createSwatchCompleted(QUuid, QImage) signal when the swatch image operation completes.

    Esri::ArcGISRuntime::TaskWatcher Symbol::createSwatch(float screenScale, const QColor &backgroundColor = QColor())

    This function is deprecated. We strongly advise against using it in new code.

    Creates a swatch image using the provided screenScale, and optional backgroundColor.

    The background color defaults to transparent when the backgroundColor is not provided. This operation will use the provided screenScale parameter to scale the image size.

    Emits the createSwatchCompleted(QUuid, QImage) signal when the swatch image operation completes.

    [signal] void Symbol::createSwatchCompleted(const QUuid &taskId, const QImage &image)

    This function is deprecated. We strongly advise against using it in new code.

    Emitted when create swatch image operation completes successfully.

    • taskId - The ID of the create swatch task.
    • image - The swatch image.

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