.. role:: ts-api-decorator

##############
ImageInterface
##############

.. js:module:: Sc
   :noindex:

.. container:: ts-api-section

   .. js:class:: ImageInterface



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-interface

   * :js:meth:`~Sc.ImageInterface.create`
   * :js:meth:`~Sc.ImageInterface.destroy`





------------

Methods
=======

.. rst-class:: ts-api-section

create
------

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

   :param mainFormat: None
   :type mainFormat: ImageFormat
   :param mainData: None
   :type mainData: Uint8Array
   :param mainHasAlpha: None
   :type mainHasAlpha: boolean
   :param mainWidth: :ts-api-decorator:`optional` None
   :type mainWidth: number
   :param mainHeight: :ts-api-decorator:`optional` None
   :type mainHeight: number
   :param thumbFormat: :ts-api-decorator:`optional` None
   :type thumbFormat: ImageFormat
   :param thumbData: :ts-api-decorator:`optional` None
   :type thumbData: Uint8Array
   :param thumbHasAlpha: :ts-api-decorator:`optional` None
   :type thumbHasAlpha: boolean
   :param thumbWidth: :ts-api-decorator:`optional` None
   :type thumbWidth: number
   :param thumbHeight: :ts-api-decorator:`optional` None
   :type thumbHeight: number


   :rtype: Promise <ImageId>

.. rst-class:: ts-api-section

destroy
-------

.. js:method:: ImageInterface.destroy( imageIds)

   :param imageIds: None
   :type imageIds: ImageIds


   :rtype: Promise <void>

