def requestSetMapBackground(self):
     """
     Return a new BackgroundImage object 
     """
     st = cleanStore()
     chan = data.Channel(store=st, name=u'#foo')
     fileitem = testFileMeta(st)
     odata = data.FileData(store=st, data=obscurement.newBlackImage(100,100))
     obsc = data.FileMeta(store=st,
             data=odata,
             filename=u'#foo_obscurement.png',
             mimeType=u'image/png',
             md5=u'316ca7b4c921a204797dfbb70becfef9',
             width=100,
             height=100,
             )
     chan.background = fileitem
     chan.obscurement = obsc
     bgi = svgmap.BackgroundImage(chan)
     bgi.setFragmentParent(self)
     return bgi
 def requestSetMapBackground(self):
     """
     Return a new BackgroundImage object 
     """
     st = cleanStore()
     chan = data.Channel(store=st, name=u'#foo')
     fileitem = testFileMeta(st)
     odata = data.FileData(store=st,
                           data=obscurement.newBlackImage(100, 100))
     obsc = data.FileMeta(
         store=st,
         data=odata,
         filename=u'#foo_obscurement.png',
         mimeType=u'image/png',
         md5=u'316ca7b4c921a204797dfbb70becfef9',
         width=100,
         height=100,
     )
     chan.background = fileitem
     chan.obscurement = obsc
     bgi = svgmap.BackgroundImage(chan)
     bgi.setFragmentParent(self)
     return bgi
Beispiel #3
0
 def txn():
     w = self.background.width
     h = self.background.height
     self.setObscurement(obscurement.newBlackImage(w, h))
Beispiel #4
0
 def txn():
     w = self.background.width
     h = self.background.height
     self.setObscurement(obscurement.newBlackImage(w, h))