| View previous topic :: View next topic |
| Author |
Message |
Watcher
Joined: 27 Dec 2004 Posts: 60
|
Posted: Fri Feb 18, 2005 9:33 pm Post subject: RGB or BGR? |
|
|
It occurred to me today, since I work with pixels a lot, why don't I just remove the RGB param off of all my commands, I don't really care if it's RGB or BGR... then I remembered that the reason I have to put that in is that many commands in AHK expect the RGB format. That being the case would it not make sense to have PixelGetColor default to RGB or at least have a #PixelGetColor directive to set it and prevent having this contradiction?
Just a thought. |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1271
|
Posted: Fri Feb 18, 2005 11:22 pm Post subject: |
|
|
I'd prefer it if RGB were the default. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Fri Feb 18, 2005 11:47 pm Post subject: |
|
|
The reason there is no directive for it is that the RGB mode seems rarely needed. If you could give some real world examples in which RGB mode is frequently used, that could help justify a new directive.
The reason RGB isn't made the default is to avoid breaking existing scripts. |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1271
|
Posted: Sat Feb 19, 2005 12:02 am Post subject: |
|
|
RGB is the standard for web graphics; I use RGB to paste values into html directly. Also, neither Photoshop or Paint Shop support BGR mode. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10716
|
Posted: Sat Feb 19, 2005 1:03 am Post subject: |
|
|
But how does that relate to PixelGetColor and PixelSearch? In other words, what are the common reasons for wanting to use RGB mode with these two commands?
The only reason that comes to mind is to make them compatible with the RGB colors used by GUI and other commands. But the need for that seems too rare to justify a new directive. |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1271
|
Posted: Sat Feb 19, 2005 1:22 am Post subject: |
|
|
Thats a good point, I've written one script to get the color of the current pixel and send the RGB value to the clipboard but for that script alone simply specifying RGB is fine. I guess I expected it to be standard because it seems to be standard elsewhere. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
|