Jump to content




Get pixel color


  • You cannot reply to this topic
3 replies to this topic

#1 TheJebForge

  • Members
  • 128 posts

Posted 30 January 2015 - 01:20 PM

How can I get the pixel color on cursor location? I'm trying to make the transparent text print function.

#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 30 January 2015 - 01:24 PM

Natively, you can't. You would have to have a custom buffer to which you would draw everything and use that to get the colors or any other data you would record. You can take a look at the window API and how it handles with that.

#3 TheJebForge

  • Members
  • 128 posts

Posted 30 January 2015 - 01:26 PM

Then, I must rewrite the paintutils api?

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 30 January 2015 - 02:04 PM

No, rather you need a custom term object.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users