Exemple #1
0
        void Apply()
        {
            if (!FAllocated || FPayload == null)
            {
                return;
            }

            int frame = (int)FPinInFrame[0];

            lock (FLock)
            {
                if (FPayload.Balanced)
                {
                    bool positive = frame % 2 == 0;
                    FInput.GetImage(positive ? FHigh : FLow);

                    if (!positive)
                    {
                        ApplyBalanced(frame / 2);
                    }
                }

                FScanSet.OnUpdateData();
            }
        }
Exemple #2
0
 void UpdateImage()
 {
     if (!FInput.Allocated)
     {
         return;
     }
     FInput.GetImage(FImage);
     FImageBox.Image = FImage.GetImage();
 }