C# Class Unvell.ReoScript.Extensions.GraphicsExtensionUtility

显示文件 Open project: jing-lu/ReoScript

Public Methods

Method Description
ConvertToColor ( object color ) : Color
ConvertToColorObject ( ScriptContext ctx, Color color ) : ObjectValue
ConvertToDashStyle ( object val ) : DashStyle
CreatePointObject ( ScriptContext ctx, float x, float y ) : ObjectValue
CreateRectangleObject ( ScriptContext ctx, RectangleF rect ) : ObjectValue
CreateSizeObject ( ScriptContext ctx, PointF p ) : ObjectValue
CreateSizeObject ( ScriptContext ctx, SizeF size ) : ObjectValue
CreateSizeObject ( ScriptContext ctx, double width, double height ) : ObjectValue
DecodeLineStyle ( string data ) : DashStyle
EncodeColor ( Color c ) : string
EncodeLineStyle ( DashStyle ds ) : string
GetPointObject ( ScriptContext ctx, object arg, PointF def ) : PointF
GetSizeObject ( ScriptContext ctx, object arg, SizeF def ) : SizeF
IsRGBColorFormat ( string data ) : bool
IsWebColorFormat ( string data ) : bool

Private Methods

Method Description
DecodeColor ( string data ) : Color

Method Details

ConvertToColor() public static method

public static ConvertToColor ( object color ) : Color
color object
return Color

ConvertToColorObject() public static method

public static ConvertToColorObject ( ScriptContext ctx, Color color ) : ObjectValue
ctx ScriptContext
color Color
return ObjectValue

ConvertToDashStyle() public static method

public static ConvertToDashStyle ( object val ) : DashStyle
val object
return DashStyle

CreatePointObject() public static method

public static CreatePointObject ( ScriptContext ctx, float x, float y ) : ObjectValue
ctx ScriptContext
x float
y float
return ObjectValue

CreateRectangleObject() public static method

public static CreateRectangleObject ( ScriptContext ctx, RectangleF rect ) : ObjectValue
ctx ScriptContext
rect System.Drawing.RectangleF
return ObjectValue

CreateSizeObject() public static method

public static CreateSizeObject ( ScriptContext ctx, PointF p ) : ObjectValue
ctx ScriptContext
p System.Drawing.PointF
return ObjectValue

CreateSizeObject() public static method

public static CreateSizeObject ( ScriptContext ctx, SizeF size ) : ObjectValue
ctx ScriptContext
size System.Drawing.SizeF
return ObjectValue

CreateSizeObject() public static method

public static CreateSizeObject ( ScriptContext ctx, double width, double height ) : ObjectValue
ctx ScriptContext
width double
height double
return ObjectValue

DecodeLineStyle() public static method

public static DecodeLineStyle ( string data ) : DashStyle
data string
return DashStyle

EncodeColor() public static method

public static EncodeColor ( Color c ) : string
c Color
return string

EncodeLineStyle() public static method

public static EncodeLineStyle ( DashStyle ds ) : string
ds DashStyle
return string

GetPointObject() public static method

public static GetPointObject ( ScriptContext ctx, object arg, PointF def ) : PointF
ctx ScriptContext
arg object
def System.Drawing.PointF
return System.Drawing.PointF

GetSizeObject() public static method

public static GetSizeObject ( ScriptContext ctx, object arg, SizeF def ) : SizeF
ctx ScriptContext
arg object
def System.Drawing.SizeF
return System.Drawing.SizeF

IsRGBColorFormat() public static method

public static IsRGBColorFormat ( string data ) : bool
data string
return bool

IsWebColorFormat() public static method

public static IsWebColorFormat ( string data ) : bool
data string
return bool