Hey all,
is there a way to read in an image file and to analyze it? I only need to read in grey-scale images, doesn't matter if png, bmp or jpg ..
I want to make it possible for Game Designers to create such images to use them in my Plugin, like in old RMXP they could draw Transition Fades. So I want to do something like this:
is there a way to read in an image file and to analyze it? I only need to read in grey-scale images, doesn't matter if png, bmp or jpg ..
I want to make it possible for Game Designers to create such images to use them in my Plugin, like in old RMXP they could draw Transition Fades. So I want to do something like this:
Code:
var image = readInImage('greyscale.png')
for (var x = 0; x < image.width; x++) {
for (var y = 0; y < image.height; y++) {
var value = image[x][y]
// ...
}
}