maxWidthHeight::
srcCanvas tmpCanvas dstCanvas