Jump to content


Photo

Color Grabber


  • Please log in to reply
8 replies to this topic

#1 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 03 December 2009 - 04:41 AM

This DLL provides a function to get pixel colors. This is the same as the draw_getpixel() function but it can grab a pixel color from anywhere on the screen (and not just the GM window). It is also slightly faster.

There is another topic with a DLL that does the same thing, but the link is broken... I thought it wouldn't hurt to post mine:

Download


Comes as a zip, with a DLL and .gmk inside. The .gmk includes an example as well as the scripts needed!

Edited by Revel, 08 August 2010 - 08:42 AM.

  • 0

#2 Vivi_IX

Vivi_IX

    GMC Member

  • GMC Member
  • 202 posts
  • Version:GM8

Posted 27 February 2010 - 05:02 PM

Hey, I've been looking for one of these....but your link is expired. You think you or someone else re-post a link to it?

Btw, does it get pixels of surfaces? Becuase that's what I really need.

Edited by Vivi_IX, 27 February 2010 - 05:16 PM.

  • 0

#3 Razon

Razon

    GMC Member

  • GMC Member
  • 268 posts
  • Version:GM:Studio

Posted 27 February 2010 - 06:07 PM

http://www.mediafire.com/?ze3jjyyuryo

Edited by Razon, 08 January 2011 - 04:14 PM.

  • 0

#4 Vivi_IX

Vivi_IX

    GMC Member

  • GMC Member
  • 202 posts
  • Version:GM8

Posted 28 February 2010 - 09:39 PM

Thanks :)
  • 0

#5 lostdarkwolf

lostdarkwolf

    GMC Member

  • GMC Member
  • 413 posts
  • Version:GM8.1

Posted 03 March 2010 - 06:43 PM

you should make this able to work with surfaces.
  • 0

Colorado finally did it! they legalized the recreational!


#6 Revel

Revel

    ɹǝqɯǝɯ ɔɯƃ

  • GMC Member
  • 4935 posts
  • Version:GM8

Posted 08 August 2010 - 08:43 AM

Link fixed..
  • 0

#7 _249112

_249112

    GMC Member

  • New Member
  • 8 posts

Posted 24 January 2012 - 01:40 PM

Does this output the same values as draw_getpixel because, if I use this in combination with the function color_get_value, they don't output the same values..
  • 0

#8 KevinBlazeCoolerz

KevinBlazeCoolerz

    GMC Member

  • GMC Member
  • 137 posts
  • Version:GM8

Posted 28 January 2012 - 05:02 AM

cool :thumbsup:
I will try this, thank you :biggrin:
  • 0

#9 Tina

Tina

    GMC Member

  • New Member
  • 4 posts
  • Version:GM8

Posted 19 March 2016 - 11:38 PM

Looks like it is not working on full-screen mode, why?

 

(It doesn't get the right color)

 

-Figured out, when it's full-screen mode, game window and screen resolution need to be same size to make it work correct...


Edited by Tina, 20 March 2016 - 12:40 AM.

  • 0