Hello,
thank you so much your answer !
and also for your greeting
Unfortunately, I forgot to write that my problem was that I would like to have all the rest in black (juste the little square of pixel not in black --> like if you was searching information in the video with your mouse)
The nine argument variant of image(..) will always be more efficient than get() (and potentially than copy()), with all the renderers, although particularly the non-default ones. So it’s worth looking at, even if not particularly well documented!
The key thing is that parameters 2-5 are the destination rectangle as position and dimensions. However 6-9 are the top-left and bottom-right coordinates of the source image. That’s why you have to add the source width to source x, and source height to source y. Upside of source being coordinates is that you can also have the second position to left and/or above the first to draw reversed.
If that sounds complicated, just play around with it!