Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# ImageDict.add Method

Module: ImageDict

## Definition

Adds an item to the ImageDict object.

Python

    add(self, key: str, image_item: Image) -> None

Parameters

> `key` str
> in Unique key of the Image item to add.
> `image_item` Image
> in Image item to add.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    void add(String? key, Image imageItem)

Parameters

> `key` String
> in Unique key of the Image item to add.
> `imageItem` Image
> in Image item to add.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public void Add(string key, Image imageItem)

Parameters

> `key` string
> in Unique key of the Image item to add.
> `imageItem` Image
> in Image item to add.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public void add(String key, Image imageItem) throws FaceException

Parameters

> `key` String
> in Unique key of the Image item to add.
> `imageItem` Image
> in Image item to add.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public func add(key: String, imageItem: Image) throws

Parameters

> `key` String
> in Unique key of the Image item to add.
> `imageItem` Image
> in Image item to add.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceImageDict_Add (
        ID3_FACE_IMAGE_DICT hImageDict,
        const char * key,
        ID3_FACE_IMAGE hImageItem)

Parameters

> `hImageDict` ID3_FACE_IMAGE_DICT
> in Handle to the ImageDict object.
> `key` const char *
> in Unique key of the Image item to add.
> `hImageItem` ID3_FACE_IMAGE
> in Image item to add.

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.