Opened 15 years ago

Closed 15 years ago

Last modified 15 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:


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 Changed 15 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

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 Changed 15 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.