Get pixel from the render target

#1

Is it possible to somehow get the pixel color from the render target by x and y?

I need to do mouse detection considering the transparent pixels of the sprite. I plan to create a separate sprite completely repainted in some color and draw it in a render target.

0 Likes

#2

I don’t understand why you want to use render target for this, but did you check this out?

1 Like

#3

Thanks, I’ll look now.

0 Likes