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)
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)
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."
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.")