Changeset 1608


Ignore:
Timestamp:
Dec 16, 2014 8:35:07 AM (7 years ago)
Author:
vondreele
Message:

fix save images problem for structures & 3D reciprocal space plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1607 r1608  
    549549            if mode in ['jpeg',]:
    550550                Pix = glReadPixels(0,0,size[0],size[1],GL_RGBA, GL_UNSIGNED_BYTE)
    551                 im = Image.new("RGBA", (size[0],size[1]))
     551                im = Im.new("RGBA", (size[0],size[1]))
    552552            else:
    553553                Pix = glReadPixels(0,0,size[0],size[1],GL_RGB, GL_UNSIGNED_BYTE)
    554                 im = Image.new("RGB", (size[0],size[1]))
     554                im = Im.new("RGB", (size[0],size[1]))
    555555            im.fromstring(Pix)
    556556            im.save(Fname,mode)
     
    40644064            if mode in ['jpeg',]:
    40654065                Pix = glReadPixels(0,0,size[0],size[1],GL_RGBA, GL_UNSIGNED_BYTE)
    4066                 im = Image.new("RGBA", (size[0],size[1]))
     4066                im = Im.new("RGBA", (size[0],size[1]))
    40674067            else:
    40684068                Pix = glReadPixels(0,0,size[0],size[1],GL_RGB, GL_UNSIGNED_BYTE)
    4069                 im = Image.new("RGB", (size[0],size[1]))
     4069                im = Im.new("RGB", (size[0],size[1]))
    40704070            im.fromstring(Pix)
    40714071            im.save(Fname,mode)
Note: See TracChangeset for help on using the changeset viewer.