I tried
ofImage img;
img.allocate(nbX, nbY, OF_IMAGE_COLOR);
for (int y = 0; y < nbY; y++) {
for (int x = 0; x < nbX; x++) {
img.setColor(x, y, image.getColor(x, y));
}
}
img.resize(1024, 768);
img.draw(0, 0);
to see if i understand how ofImage works. And that seems ok.
Still have the issue i don't understand.
Maybe some other part in the code.
here you can see the code
https://github.com/martialgallorini/springBounce/tree/silhouette-install
thanks a lot