public System.Drawing.PointF globalToLocal(System.Drawing.PointF point) { System.Drawing.PointF ret = new System.Drawing.PointF(); ImportLib.SetField(webBrowser, "UserObject", "x", Converter.ToString(point.X), true); ImportLib.SetField(webBrowser, "UserObject", "y", Converter.ToString(point.Y), true); ImportLib.RunFunc(webBrowser, nameMovie, "globalToLocal", "UserObject", true); ret.X = Converter.StringTo <float>(ImportLib.GetData(webBrowser, "UserObject.x")); ret.Y = Converter.StringTo <float>(ImportLib.GetData(webBrowser, "UserObject.y")); return(ret); }
public RBounds getBounds(string targetCoordinateSpace) { ImportLib.RunFunc(webBrowser, nameMovie, "getBounds", targetCoordinateSpace); RBounds dObject = new RBounds(); string xMin = ImportLib.GetData(webBrowser, "GetResFunc", "xMin"); if (xMin != Converter.ValueNotFind) { dObject.xMin = Converter.StringTo <float>(xMin); dObject.xMax = Converter.StringTo <float>(ImportLib.GetData(webBrowser, "GetResFunc", "xMax")); dObject.yMin = Converter.StringTo <float>(ImportLib.GetData(webBrowser, "GetResFunc", "yMin")); dObject.yMax = Converter.StringTo <float>(ImportLib.GetData(webBrowser, "GetResFunc", "yMax")); } return(dObject); }