AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RGB or BGR?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Watcher



Joined: 27 Dec 2004
Posts: 60

PostPosted: Fri Feb 18, 2005 9:33 pm    Post subject: RGB or BGR? Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Fri Feb 18, 2005 11:22 pm    Post subject: Reply with quote

I'd prefer it if RGB were the default.
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Fri Feb 18, 2005 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Sat Feb 19, 2005 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10716

PostPosted: Sat Feb 19, 2005 1:03 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Serenity



Joined: 07 Nov 2004
Posts: 1271

PostPosted: Sat Feb 19, 2005 1:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group