gpt4 book ai didi

cocoa - MonoMac 中的 NSReadPixel 在哪里?

转载 作者:行者123 更新时间:2023-12-03 17:11:34 25 4
gpt4 key购买 nike

我正在尝试查找 NSReadPixel。好像它来自AppKit,但我在MonoMac 中找不到它。有人可以告诉我它是否已实现吗?

编辑:我必须调用它。声明如下。

最佳答案

尚未实现。这是 PInvoke:

[System.Runtime.InteropServices.DllImport("/System/Library/Frameworks/AppKit.framework/AppKit")]
extern static IntPtr NSReadPixel(System.Drawing.PointF point);

示例:

var color = new NSColor(NSReadPixel(aPoint)); // where aPoint is PointF

关于cocoa - MonoMac 中的 NSReadPixel 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24109038/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com