Ejemplo n.º 1
0
        public FRAME_PAIR Clone()
        {
            FRAME_PAIR copy = new FRAME_PAIR();

            copy.bmp               = this.bmp;  // use the same reference, do not copy the bmp;
            copy.jpeg              = this.jpeg; // use the same reference, do not copy the bmp;
            copy.m_state           = this.m_state;
            copy.portPairIndex     = this.portPairIndex;
            copy.serialNumber      = this.serialNumber;
            copy._S2255DeviceIndex = this._S2255DeviceIndex;
            return(copy);
        }
Ejemplo n.º 2
0
        void HandleNewFramePairs(FRAME_PAIR fp)
        {
            if (busy) return;

            busy = true;

            ConvertBmp(fp.portPairIndex, (Bitmap)fp.bmp);

            DisplayJpeg(fp.portPairIndex, fp.jpeg);

            busy = false;
        }
Ejemplo n.º 3
0
 public FRAME_PAIR Clone()
 {
     FRAME_PAIR copy = new FRAME_PAIR();
     copy.bmp = this.bmp;// use the same reference, do not copy the bmp;
     copy.jpeg = this.jpeg;// use the same reference, do not copy the bmp;
     copy.m_state = this.m_state;
     copy.portPairIndex = this.portPairIndex;
     copy.serialNumber = this.serialNumber;
     copy._S2255DeviceIndex = this._S2255DeviceIndex;
     return (copy);
 }