← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #691154]: Transition from 1.1.0 to 2.0.4. Unexpected image search behavior

 

Question #691154 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/691154

Darius Tumas gave more information on the question:
Not sure is that intentional or not, but the problem seems is with:

Image testImage = Image.create("image_name_in_classpath");
testImage.getSub(x, y, w, h);

getSub returns Image with BufferedImage with custom type when source
image ""image_name_in_classpath" has color profile attached to it,
instead being just standard RGB or SRGB.

Work around without converting source image for now i have used:

Image titleTabStart = new
Image(Image.createSubimage(windowElements.get(), new Rectangle(12, 156,
18, 21)));

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