to work around this issue I'm using this python function in my script (it's 
terribly slow though)

def sameAs(device, i1, i2, perc):
  e = ne = 0
  for x in range(0, int(device.getProperty('display.width'))):
    for y in range(0, int(device.getProperty('display.height'))):
      #print 'x = %d, y = %d ' % (x,y) 
      if i1.getRawPixelInt(x,y) == i2.getRawPixelInt(x,y):
        e = e+1
      else:
        ne = ne+1

  print 'e = %d, ne = %d' % (e,ne)
  match = e * 100.0 / (ne + e)
  if match >= perc:
    return True
  else:
    return False

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to