Beispiel #1
0
def drawTimeAnnotation(im, t, units):
    text = "Time = %1.8g %s" % (t, units)
    textScale = 0.03
    tx = 0.005
    ty = 1. - textScale
    textColor = (0, 0, 0)
    arial.drawText(im, tx, ty, text, textScale, textColor)
Beispiel #2
0
def drawTimeAnnotation(im, t, units):
    text = "Time = %1.8g %s" % (t, units)
    textScale = 0.03
    tx = 0.005
    ty = 1. - textScale
    textColor = (0,0,0)
    arial.drawText(im, tx, ty, text, textScale, textColor)
Beispiel #3
0
 def _ImageOps__drawTextCallback(self, arguments):
     if(self.im != 0):
         x0 = arguments[0]
         y0 = arguments[1]
         text = arguments[2]
         scale = arguments[3]
         fillColor = arguments[4]
         arial.drawText(self.im, x0, y0, text, scale, fillColor)
     else:
         print "Can't draw text because no image is loaded."
Beispiel #4
0
 def _ImageOps__drawTextCallback(self, arguments):
     if(self.im != 0):
         x0 = arguments[0]
         y0 = arguments[1]
         text = arguments[2]
         scale = arguments[3]
         fillColor = arguments[4]
         arial.drawText(self.im, x0, y0, text, scale, fillColor)
     else:
         print("Can't draw text because no image is loaded.")