Exemple #1
0
 def _create_PIL_image_obj_from_espimage_file(self):
     """
     Creates a PIL image object from the jig's ESP image (png) file.
     """
     if self.espimage_file:
         self.image_obj = nEImageOps(self.espimage_file)
         self.image_mods.do_to( self.image_obj) #bruce 060210 bugfix: stored image_mods in mmp file, so we can reuse them here
     return
 def _create_PIL_image_obj_from_espimage_file(self):
     """
     Creates a PIL image object from the jig's ESP image (png) file.
     """
     if self.espimage_file:
         self.image_obj = nEImageOps(self.espimage_file)
         self.image_mods.do_to(
             self.image_obj
         )  #bruce 060210 bugfix: stored image_mods in mmp file, so we can reuse them here
     return
Exemple #3
0
def create_PIL_image_obj_from_image_file(image_file, **kws):
    ### TODO: refile this into ImageUtils?
    """
    Creates and returns an nEImageOps object
    (using the given kws, documented in ImageUtils.py),
    which contains (and sometimes modifies in place)
    a PIL image object made from the named image file.
    """
    from graphics.images.ImageUtils import nEImageOps
    return nEImageOps(image_file, **kws)
def create_PIL_image_obj_from_image_file(image_file, **kws):
    ### TODO: refile this into ImageUtils?
    """
    Creates and returns an nEImageOps object
    (using the given kws, documented in ImageUtils.py),
    which contains (and sometimes modifies in place)
    a PIL image object made from the named image file.
    """
    from graphics.images.ImageUtils import nEImageOps
    return nEImageOps(image_file, **kws)