Public Class ArxApi <System.Runtime.InteropServices.DllImport("acad.exe", CallingConvention:=CallingConvention.Cdecl, entrypoint:="?acedCoordFromPixelToWorld@@YAHHVCPoint@@QAN@Z")> _ Public Shared Function acedCoordFromPixelToWorld(ByVal viewportNumber As Integer, ByVal pixel As System.Drawing.Point, ByRef point As Point3d) As Boolean ''' ''' End Function
''' <System.Runtime.InteropServices.DllImport("acad.exe", CallingConvention:=CallingConvention.Cdecl, entrypoint:="?acedCoordFromWorldToPixel@@YAHHQBNAAVCPoint@@@Z")> _ Public Shared Function acedCoordFromWorldToPixel(ByVal viewportNumber As Integer, ByVal worldPt As Point3d, ByRef pixel As System.Drawing.Point) As Boolean ''' ''' End Function
''' End Class
源程序 |