- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new ImageUtil(width?: number, height?: number, fillcolor?: Color4): ImageUtil
-
Parameters
-
width: number = 1
-
height: number = 1
-
fillcolor: Color4 = ...
Properties
imageData
imageData: ImageData
Methods
clear
- clear(clearColor?: Color4): void
-
Returns void
clearBackColor
- clearBackColor(backColor: Color4): void
-
Returns void
drawColorPickerRect
- drawColorPickerRect(color: number): ImageUtil
-
drawDefaultParticle
- drawDefaultParticle(size?: number): ImageUtil
-
drawImageData
- drawImageData(imageData: ImageData, x: number, y: number): ImageUtil
-
Parameters
-
imageData: ImageData
-
x: number
-
y: number
drawPoint
- drawPoint(x: number, y: number, color: Color4, size?: number): ImageUtil
-
Parameters
-
x: number
-
y: number
-
-
size: number = 1
fromImage
- fromImage(image: HTMLImageElement): ImageUtil
-
getPixel
- getPixel(x: number, y: number): Color4
-
init
- init(width?: number, height?: number, fillcolor?: Color4): void
-
Parameters
-
width: number = 1
-
height: number = 1
-
fillcolor: Color4 = ...
Returns void
toDataURL
- toDataURL(): string
-
Returns string
Static
fromImage
- fromImage(image: HTMLImageElement): ImageUtil
-
图片相关工具