maxWidthHeight
amount
R
G
B
srcCanvas
dstCanvas