Home
last modified time | relevance | path

Searched refs:im (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/tools/ota/
Dconvert-to-bmp.py16 im = Image.open(infile) variable
17 if im.mode == 'RGB':
18 im.save(outfile)
19 elif im.mode == 'RGBA':
50 im.size[0] * im.size[1] * 4),
56 im.size[0],
57 im.size[1],
70 data = im.tostring()
71 for j in range(im.size[1]-1, -1, -1): # rows bottom-to-top
72 for i in range(j*im.size[0]*4, (j+1)*im.size[0]*4, 4):
[all …]