AutoHotkey Community

It is currently May 25th, 2012, 4:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: RGB or BGR?
PostPosted: February 18th, 2005, 10:33 pm 
Offline

Joined: December 28th, 2004, 12:33 am
Posts: 60
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2005, 12:22 am 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
I'd prefer it if RGB were the default.

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2005, 12:47 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2005, 1:02 am 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2005, 2:03 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2005, 2:22 am 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
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
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: engunneer, Exabot [Bot], vsub and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group