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(); } }
void UpdateImage() { if (!FInput.Allocated) { return; } FInput.GetImage(FImage); FImageBox.Image = FImage.GetImage(); }