maxWidthHeight
R dx
G dx
B dx
A dx
R dy
G dy
B dy
A dy
srcCanvas
dstCanvas