Jump to content

Getting pixel color from screen/render target


JeViCo

Recommended Posts

Posted

Hello everyone! I'm making color picker with dx functions. How can i get pixel color under mouse cursor? I tried to use render targets but it always returns 0,0,0 (rgb). I don't know how to get screen pixels without losing performance (onClientRender). I'm making everything with DGS library so it gives additional troubles. Any suggestions? :(

  • Like 1
  • Thanks 1
  • Discord Moderators
Posted

You actually gave me an idea :D
Thanks mate, I really appreciate, I gave you some reputation points. 

Posted
On 04.08.2018 at 16:17, Pirulax said:

You actually gave me an idea :D
Thanks mate, I really appreciate, I gave you some reputation points. 

lol okay then)

  • Discord Moderators
Posted

I never thought about just getting the color under the cursor, but instead doing some crazy math :lol::lol:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...