![]() |
getpixel()
Could there be a get pixel function? like
PHP Code:
getpixel("GraalControl", mousescreenx, mousescreeny); It would make my life a whole lot easier, I don't know how easy this would be to implement but it seriously needs doing please. |
This should be extremely easy I would think.
I mean, they even do this kind of thing in Paint. If nothing else, you could take a screenshot and then use getPixelOnImage() or whatever it is. |
Quote:
|
Well there's already a getpixel function that I listed in your other thread? Or is this specifically about getting pixel information from an object?
edit: scratch that, I forgot the current function gets it from an image. |
Quote:
|
Probably better if it was a getRect(x,y,w,h) function otherwise it would slow things down tremendously
|
Quote:
|
Such a function would be complex for OpenGL/DirectX (taking a screenshot, getting the pixel from that), so it's not planned to be added anytime soon. It would however be simple for the new external windows.
|
Quote:
|
Quote:
|
Quote:
But yeah it's probably much easier to do with the GDI on windows, but on OS X? |
Quote:
I'm sure operating systems must have some library or something to do this. |
Quote:
|
Quote:
|
Quote:
|
1 Attachment(s)
Fireworks does it (yes, it is selected by my mouse, but it gets hidden when you take a screenshot).
This makes me think it would be a system thing, as it can do it with anything on the screen, not just in that program. |
1 Attachment(s)
Actually, theres a handy program I often use which zooms the few pixels around your mouse and gives color informations for the one exactly at your mouse. It can be used on your whole screen, so I guess it should be possible, somehow, without taking a screenshot, because this baby doesnt.
Attached it for the people interested. |
1 Attachment(s)
I just remember this, there's also a tool built into Mac.
|
| All times are GMT +2. The time now is 08:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.