Class TextureImageSource

Hierarchy

  • TextureImageSource

Constructors

Properties

__type__?: "TextureImageSource"

数据类型。

flipY?: boolean

是否Y轴翻转图片。

注:WebGL(先翻转,再拷贝)与WebGPU(先拷贝,再翻转)处理方式不一样。此次已WebGL为准。当拷贝全图时,效果一致。

image: TexImageSource

图片资源。

imageOrigin?: ImageOrigin

读取图片上的像素坐标。

mipLevel?: number

写入纹理的mipmap层级索引。

premultipliedAlpha?: boolean

是否需要预乘透明度。

Extents of the content to write from source to destination.

写入尺寸。

textureOrigin?: TextureOrigin

Defines the origin of the copy - the minimum corner of the texture sub-region to copy to/from. Together with copySize, defines the full copy sub-region.

写入纹理的位置。

Methods

Generated using TypeDoc