예제 #1
0
파일: FramePair.cs 프로젝트: mutita/anpr
        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);
        }
예제 #2
0
파일: Form1.cs 프로젝트: anndream/anpr-1
        void HandleNewFramePairs(FRAME_PAIR fp)
        {
            if (busy) return;

            busy = true;

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

            DisplayJpeg(fp.portPairIndex, fp.jpeg);

            busy = false;
        }
예제 #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);
 }