Bitmap resource.
UV data information.
Original width of the texture.
Original height of the texture.
可选lock可选name静态DEBUG静态 只读DEF_静态 只读INV_静态 只读NO_静态cpu静态gpu增加一个依赖内容
依赖内容
增加多个依赖内容
依赖内容
The type of event.
可选data: any(Optional) Data to pass to the callback. If multiple parameters p1, p2, p3, ... need to be passed, use an array structure such as [p1, p2, p3, ...]. If a single parameter p needs to be passed and p is an array, use a structure such as [p]. For other single parameters p, you can directly pass parameter p. If data is Event.EMPTY, it means passing an Event object to the callback function. Note that it is not passing Event.TEMP, but an independent Event object.
True if there are listeners for this event type, false otherwise.
The x-coordinate of the clip area.
The y-coordinate of the clip area.
The width of the clip area.
The height of the clip area.
A Texture object representing the clipped sub-texture, or null if the clip area is out of bounds.
The URL of the image to load.
可选complete: HandlerAn optional callback function that is called when the image is loaded.
A promise that resolves to the loaded image.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
可选listener: FunctionThe listener function.
可选args: any[]This EventDispatcher object.
可选type: string(Optional) The type of event. If the value is null, all types of listeners on this object are removed.
This EventDispatcher object.
The target caller object.
This EventDispatcher object.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
The listener function.
可选args: any[](Optional) The callback parameters of the event listener function.
This EventDispatcher object.
The type of event.
The listener function.
This EventDispatcher object.
The type of event.
The execution scope of the event listener function.
The listener function.
可选args: any[](Optional) The callback parameters of the event listener function.
This EventDispatcher object.
The bitmap resource.
The UV data information.
The original width of the texture.
The original height of the texture.
静态createThe source texture, either a Texture2D or a Texture object.
The starting absolute x coordinate.
The starting absolute y coordinate.
The absolute width.
The absolute height.
The offset on the X-axis (optional). It is the position of [x, y] relative to the original small image. Generally, it is positive, indicating that the size of the blank edge has been cut off. If it is negative, it usually indicates that a protective edge has been added
The offset on the Y-axis (optional).
The original width, including any cropped transparent areas (optional).
The original height, including any cropped transparent areas (optional).
A Texture object.
静态createThe target Texture to crop.
The x position relative to the target Texture.
The y position relative to the target Texture.
The width to crop.
The height to crop.
A new Texture or null if the areas do not intersect.
静态destroy
En
The Texture is a texture processing class.
Zh
Texture 是一个纹理处理类。