26 lines
828 B
C#
26 lines
828 B
C#
/*
|
|
* Copyright (c) 2025 LG Electronics Inc.
|
|
* SPDX-License-Identifier: LicenseRef-LGE-Proprietary
|
|
*/
|
|
using Aurora.Api;
|
|
using Cognex.VisionPro.Display;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CogUI {
|
|
public class CustumCogDisplay : CogDisplay {
|
|
private Logger _Logger = new Logger("CustumCogDisplay");
|
|
public MouseEventHandler MouseWheel;
|
|
public EventHandler ContextFitImage;
|
|
|
|
protected override void OnMouseWheel(MouseEventArgs e) {
|
|
base.OnMouseWheel(e);
|
|
MouseWheel.BeginInvoke(this, e, null, null);
|
|
}
|
|
|
|
protected override void OnContextMenuItemFitImageClicked(object sender, EventArgs e) {
|
|
base.OnContextMenuItemFitImageClicked(sender, e);
|
|
ContextFitImage.BeginInvoke(this, e, null, null);
|
|
}
|
|
}
|
|
} |