# ImageInterface

class Sc.ImageInterface()

Methods

- `create()`

- `destroy()`

## Methods

### create

ImageInterface.create(mainFormat, mainData, mainHasAlpha[, mainWidth[, mainHeight[, thumbFormat[, thumbData[, thumbHasAlpha[, thumbWidth[, thumbHeight]]]]]]])
  Arguments

    - mainFormat (`ImageFormat()`) – None

    - mainData (`Uint8Array()`) – None

    - mainHasAlpha (`boolean()`) – None

    - mainWidth (`number()`) – optional None

    - mainHeight (`number()`) – optional None

    - thumbFormat (`ImageFormat()`) – optional None

    - thumbData (`Uint8Array()`) – optional None

    - thumbHasAlpha (`boolean()`) – optional None

    - thumbWidth (`number()`) – optional None

    - thumbHeight (`number()`) – optional None

  Return type

    Promise <ImageId>

### destroy

ImageInterface.destroy(imageIds)
  Arguments

    - imageIds (`ImageIds()`) – None

  Return type

    Promise <void>