← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #700621]: Extracting availability from calendar image

 

Question #700621 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/700621

    Status: Open => Answered

RaiMan proposed the following answer:
@Mike
There is indeed a color pick feature:
Location::getColor()

which returns a Java Color object you can play with and create your own
suitable functions.

example for IDE:
color = selectRegion().getCenter().getColor()
print color
print color.getRed(), color.getGreen(), color.getBlue()

lets you select a point on the screen and report the RGB color values.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.