SFML community forums
Help => Graphics => Topic started by: jerryd on July 04, 2017, 04:01:45 am
-
SFML forum,
How can I read the color of a specific pixel on the screen?
jerryd
-
SFML forum,
How can I read the color of a specific pixel on the screen?
jerryd
Your best bet to my knowledge would be to use a Window.capture() which returns an image, then you can use getPixel(x, y). It'll be a very expensive operation.
-
How can I read the color of a specific pixel on the screen?
What exactly do you want to achieve?
-
How can I read the color of a specific pixel on the screen?
What exactly do you want to achieve?
really...he said it clearly
anyways this has been answered by Gleade
so...sfml is not a raster graphic graphic library
as Gleade said the operation will be expensive
if you want to do it continuously
it is a bad idea :P