winform的
完整代码:
- public static class Cell3D
- {
- public static bool SoftwareRendering { get; private set; }
- public static Medical3DVolumeRenderingType RenderingType { get; private set; }
- public static bool HardwareCompatible { get; private set; }
- // Convert the 2D Cell to 3D
- public static Medical3DControl ConvertTo3D(MedicalViewerMultiCell cell)
- {
- RenderingType = (Medical3DVolumeRenderingType)2;
- Medical3DEngine.SoftwareRendering = false;
- HardwareCompatible = Medical3DEngine.HardwareCompatible;
- SoftwareRendering = false;
- //这句报错
- Medical3DControl control3D = new Medical3DControl(false);
- }
- }
复制代码 |