Answers for "offset calculation for images"

0

offset calculation for images

offsetFactor = (1.0 - scale) / 2;
dx = originalWidth * offsetFactor;
dy = originalHeight * offsetFactor;
Posted by: Guest on July-12-2020

Browse Popular Code Answers by Language