Closed RobLoach closed 3 years ago
@eviltreehouse Thanks for queuing this! I think this one is good to go. With this, you can check....
const raw = fs.readFileSync('wabbits_alpha.png');
const imgBunny = r.LoadImageFromMemory('png', raw, raw.length);
if (! imgBunny) {
console.error('failed to load image!');
process.exit(1);
}
@RobLoach hah sorry to de-rail you on this tangent but I dig the more intuitive interface -- much less seg-fault prone ;)
Fixes #79