Skip to content

Instantly share code, notes, and snippets.

View Lucas7yoshi's full-sized avatar

Lucas Lucas7yoshi

View GitHub Profile
// Make a variable of: List<Image>
// I'm not going to give any support other than saying that you need to run this in a form app in c#
// It assumes a image size of 256 x 256, change the values at will.
var numperrow = 4;
var w = 256 * numperrow;
int h = int.Parse(Math.Ceiling(double.Parse(imgs.Count.ToString()) / numperrow).ToString()) * 256;
if (imgs.Count * 256 < 256 * numperrow)
{
w = imgs.Count * 256;