Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#688 closed Feature Request (Rejected)

Built-in function to compare colors

Reported by: Manadar Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

PixelSearch probably already uses a built-in function in AutoIt to compare two colors. My request is to implement the built-in function to a function in AutoIt.

Comparing colors and getting their respective difference is something that I currently do with a few calls to _ColorGetX.

Attachments (0)

Change History (2)

comment:1 by Valik, 17 years ago

Resolution: Rejected
Status: newclosed

There's nothing built-in about it. It extracts the red, green and blue components and then it creates a high and low value for each color by adding/subtracting the shade variation. Then the test color is compared to see if it's in the calculated range. It's nothing fancy and hardly worth porting out to a function. Also, there are many other ways to compare pixels so I don't think we should provide a method. You need to write a method that works for you.

comment:2 by TicketCleanup, 17 years ago

Version: 3.2.12.1

Automatic ticket cleanup.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.