Browse Source

правка под новый ПИВ

20230911
Денис Кузнецов 3 years ago
parent
commit
a0774b48c1
  1. 64
      udplib.cs

64
udplib.cs

@ -541,6 +541,51 @@ namespace UDPLIB
public static Boolean status_rs { set; get; } public static Boolean status_rs { set; get; }
public static Boolean status_eth { set; get; } public static Boolean status_eth { set; get; }
} }
public class Res2
{
public Bitmap Bmp;
public Bitmap Crop;
public Bitmap Clearimg;
public UInt16 Iwidth;
public UInt16 Iheight;
public UInt32 Frames;
public float Fps;
public float AzUpr;
public float ElUpr;
public Int32 Shirota;
public Int32 Dolgota;
public Int32 Vysota;
public Int16 Course;
public Int16 Roll;
public Int16 Pitch;
public UInt16 X;
public UInt16 Y;
public Byte lx;
public Byte ly;
public Byte rejim_oes; // Режим ОЭС: «0» – Обзор, «1» – АС
public Byte zahvat; // Захват: «0» – отсутствие захвата, «1» – налачие захвата
public Byte color; // Цвет изображения: «1» – цветное, «0» – монохромное
public String Version
{
get
{
return "1.1.0.255";
}
}
public String Configuration
{
get
{
#if DEBUG
return "Debug";
#else
return "Release";
#endif
}
}
public Boolean status_rs { set; get; }
public Boolean status_eth { set; get; }
}
public static class CallBack public static class CallBack
{ {
public delegate void Event_newimg(); public delegate void Event_newimg();
@ -549,21 +594,10 @@ namespace UDPLIB
public delegate void Event_crop_transmitted(); public delegate void Event_crop_transmitted();
public static Event_crop_transmitted Event_crop_transmitted_Handler; public static Event_crop_transmitted Event_crop_transmitted_Handler;
public delegate void Event_newimg2(Res2 data);
public static Event_newimg2 Event_newimg_Handler2;
//public delegate void callbackEvent_bmp(Bitmap bmp); public delegate void Event_transmitted();
//public delegate void callbackEvent_newimage(); public static Event_transmitted Event_transmitted_Handler;
//public delegate void callbackEvent_newpacket();
//public delegate void callbackEvent_str(String str);
//public delegate void callback_BVM2OES();
//public delegate void callback_etalon(Point pnt);
//public static callbackEvent_bmp callbackEventHandler_bmp;
//public static callbackEvent_newimage callbackEventHandler_newimage;
//public static callbackEvent_newpacket callbackEventHandler_newpacket;
//public static callbackEvent_str callbackEventHandler_str;
//public static callback_BVM2OES callback_BVM2OESHandler;
//public static callback_etalon callback_etalonHandler;
//public static Bitmap img { get; set; }
} }
} }

Loading…
Cancel
Save