TextureImage QML Type
Contains a texture image. 更多...
Import Statement: | import QtCanvas3D 1.1 |
开始支持版本: | QtCanvas3D 1.0 |
属性
- errorString() : string
- height() : int
- imageState() : TextureImageState
- src() : url
- width() : int
方法
详细描述
An uncreatable QML type that contains a texture image created by calling TextureImageFactory::newTexImage() and settings the src
of the image.
属性
Contains the texture image state. It is one of TextureImage.INITIALIZED
, TextureImage.LOAD_PENDING
, TextureImage.LOADING
, TextureImage.LOADING_FINISHED
or TextureImage.LOADING_ERROR
.
src() : url |
Contains the url source where the image data is loaded from.
成员
TextureImage create() |
Returns a new texture image.
TextureImage resize(int width, int height) |
Returns a copy of the texture image resized to the given width and height.