fixed bug where some images got a white line on the right or bottom. (ex: 1500x1001 pixel image gets a white line on the bottom)

This commit is contained in:
Shane Brinkman-Davis
2015-03-10 08:40:32 -06:00
parent 81876300a3
commit 623d445a11
+1 -1
View File
@@ -143,7 +143,7 @@
} else { } else {
scaleFactor = widthFactor; // scale to fit width scaleFactor = widthFactor; // scale to fit width
} }
scaledSize = CGSizeMake(width * scaleFactor, height * scaleFactor); scaledSize = CGSizeMake(floor(width * scaleFactor), floor(height * scaleFactor));
} }
UIGraphicsBeginImageContext(scaledSize); // this will resize UIGraphicsBeginImageContext(scaledSize); // this will resize