This commit is contained in:
Star Brilliant 2014-02-03 19:23:09 +08:00
parent 14e17c8af3
commit f6a7601fd7

View File

@ -436,6 +436,7 @@ def WriteCommentAcfunPositioned(f, c, width, height, styleid):
except (IndexError, ValueError) as e:
logging.warning(_('Invalid comment: %r') % c[3])
def WriteCommentSH5VPositioned(f, c, width, height, styleid):
def GetTransformStyles(x=None, y=None, fsize=None, rotate_z=None, rotate_y=None, color=None, alpha=None):
@ -479,6 +480,7 @@ def WriteCommentSH5VPositioned(f, c, width, height, styleid):
except (IndexError, ValueError) as e:
logging.warning(_('Invalid comment: %r') % c[3])
# Result: (f, dx, dy)
# To convert: NewX = f*x+dx, NewY = f*y+dy
def GetZoomFactor(SourceSize, TargetSize):