public void DrawString(
     int x,
     int y,
     string message,
     Color?foreColor        = null,
     Color?backColor        = null,
     int?fontSize           = null,
     string fontFamily      = null,
     string fontStyle       = null,
     string horizontalAlign = null,
     string verticalAlign   = null)
 {
     luaPictureBox.DrawText(x, y, message, foreColor, backColor, fontSize, fontFamily, fontStyle, horizontalAlign, verticalAlign);
 }
Example #2
0
 public void DrawString(
     int x,
     int y,
     string message,
     [LuaColorParam] object foreColor = null,
     [LuaColorParam] object backColor = null,
     int?fontSize           = null,
     string fontFamily      = null,
     string fontStyle       = null,
     string horizontalAlign = null,
     string verticalAlign   = null)
 {
     luaPictureBox.DrawText(x, y, message, _th.SafeParseColor(foreColor), _th.SafeParseColor(backColor), fontSize, fontFamily, fontStyle, horizontalAlign, verticalAlign);
 }
Example #3
0
 public void DrawString(
     int x,
     int y,
     [LuaArbitraryStringParam] string message,
     [LuaColorParam] object foreColor = null,
     [LuaColorParam] object backColor = null,
     int?fontSize = null,
     [LuaASCIIStringParam] string fontFamily     = null,
     [LuaEnumStringParam] string fontStyle       = null,
     [LuaEnumStringParam] string horizontalAlign = null,
     [LuaEnumStringParam] string verticalAlign   = null)
 {
     luaPictureBox.DrawText(x, y, LuaLibraryBase.FixString(message), _th.SafeParseColor(foreColor), _th.SafeParseColor(backColor), fontSize, fontFamily, fontStyle, horizontalAlign, verticalAlign);
 }