protected void EarthView_World_Display_ICachedBitmap_load_void_IBitmap_IPaintDevice_Function(IntPtr bmp, IntPtr ref_destDevice) { EarthView.World.Display.Ibitmap csobj_bmp = new EarthView.World.Display.Ibitmap(CreatedWhenConstruct.CWC_NotToCreate); csobj_bmp.BindNativeObject(bmp, "IBitmap"); csobj_bmp.Delegate = true; IClassFactory csobj_bmpClassFactory = GlobalClassFactoryMap.Get(csobj_bmp.GetCppInstanceTypeName()); if (csobj_bmpClassFactory != null) { csobj_bmp.Delegate = true; csobj_bmp = csobj_bmpClassFactory.Create() as EarthView.World.Display.Ibitmap; csobj_bmp.BindNativeObject(bmp, "IBitmap"); csobj_bmp.Delegate = true; } EarthView.World.Display.Ipaintdevice csobj_ref_destDevice = new EarthView.World.Display.Ipaintdevice(CreatedWhenConstruct.CWC_NotToCreate); csobj_ref_destDevice.BindNativeObject(ref_destDevice, "IPaintDevice"); csobj_ref_destDevice.Delegate = true; IClassFactory csobj_ref_destDeviceClassFactory = GlobalClassFactoryMap.Get(csobj_ref_destDevice.GetCppInstanceTypeName()); if (csobj_ref_destDeviceClassFactory != null) { csobj_ref_destDevice.Delegate = true; csobj_ref_destDevice = csobj_ref_destDeviceClassFactory.Create() as EarthView.World.Display.Ipaintdevice; csobj_ref_destDevice.BindNativeObject(ref_destDevice, "IPaintDevice"); csobj_ref_destDevice.Delegate = true; } Load(csobj_bmp, csobj_ref_destDevice); }
/// <summary> /// 加载 /// </summary> /// <param name="bmp">位图</param> /// <param name="destDevice">目标设备</param> /// <returns></returns> public new void Load_NoVirtual(EarthView.World.Display.Ibitmap bmp, EarthView.World.Display.Ipaintdevice ref_destDevice) { EarthView_World_Display_CCacheBitmap_load_void_IBitmap_IPaintDevice_NoVirtual(this.NativeObject, object.Equals(bmp, null) ? IntPtr.Zero : bmp.NativeObject, object.Equals(ref_destDevice, null) ? IntPtr.Zero : ref_destDevice.NativeObject); }