Methods
create
- create(x: number, y: number): void
loadFromFile
- loadFromFile(filename: string, area?: IntRect): Promise<void>
-
Parameters
-
filename: string
-
Optional area: IntRect
Returns Promise<void>
loadFromFileSync
- loadFromFileSync(filename: string, area?: IntRect): boolean
-
Parameters
-
filename: string
-
Optional area: IntRect
Returns boolean
loadFromMemory
- loadFromMemory(buff: Buffer, area?: IntRect): boolean
-
Parameters
-
buff: Buffer
-
Optional area: IntRect
Returns boolean
setSmooth
- setSmooth(smooth?: boolean): void
update
- update(texture: Texture): void
- update(texture: Texture, x: number, y: number): void
- update(image: Image): void
- update(image: Image, x: number, y: number): void
- update(buffer: Buffer, width?: number, height?: number, x?: number, y?: number): void
-
Parameters
Returns void
-
Parameters
Returns void
-
Parameters
Returns void
-
Parameters
Returns void
-
Parameters
-
buffer: Buffer
-
Optional width: number
-
Optional height: number
-
Optional x: number
-
Optional y: number
Returns void