The HtmlImage class represents an image object within an HTML element.

HtmlImage 类表示 HTML 元素中的图像对象。

实现

构造函数

属性

访问器

方法

构造函数

属性

obj: Sprite

The sprite object representing the image.

表示图像的精灵对象。

访问器

方法

  • 参数

    • owner: Text

      The owner text object.

    • element: HtmlElement

      The HTML element associated with the image.

    返回 void

    Creates and loads the image with the specified owner text and HTML element.

    使用指定的文本所有者和 HTML 元素创建并加载图像。