Changeset 2325 for trunk/GSASIIplot.py
- Timestamp:
- Jun 15, 2016 8:07:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2311 r2325 662 662 Pix = glReadPixels(0,0,size[0],size[1],GL_RGB, GL_UNSIGNED_BYTE) 663 663 im = Im.new("RGB", (size[0],size[1])) 664 im.fromstring(Pix) 664 try: 665 im.frombytes(Pix) 666 except AttributeError: 667 im.fromstring(Pix) 665 668 im = im.transpose(Im.FLIP_TOP_BOTTOM) 666 669 im.save(Fname,mode) … … 4729 4732 Pix = glReadPixels(0,0,size[0],size[1],GL_RGB, GL_UNSIGNED_BYTE) 4730 4733 im = Im.new("RGB", (size[0],size[1])) 4731 im.fromstring(Pix) 4734 try: 4735 im.frombytes(Pix) 4736 except AttributeError: 4737 im.fromstring(Pix) 4732 4738 im = im.transpose(Im.FLIP_TOP_BOTTOM) 4733 4739 im.save(Fname,mode) … … 6090 6096 Pix = glReadPixels(0,0,size[0],size[1],GL_RGB, GL_UNSIGNED_BYTE) 6091 6097 im = Im.new("RGB", (size[0],size[1])) 6092 im.fromstring(Pix) 6098 try: 6099 im.frombytes(Pix) 6100 except AttributeError: 6101 im.fromstring(Pix) 6093 6102 im = im.transpose(Im.FLIP_TOP_BOTTOM) 6094 6103 im.save(Fname,mode)
Note: See TracChangeset
for help on using the changeset viewer.