可可将图像合成在一起
我记得有一种方法可以将 3 个不同图像(一个左侧、中间将被拉伸的图像和右侧)拼凑成一个图像,例如按钮。我认为也有类似的东西需要 10 张图像,但我不确定。
关键是,有人知道执行此操作的 API 调用吗?如果不知道,我该如何从 3 个不同的图像中绘制一个简单的按钮?
谢谢。
I recall that there was this one method that could piece together an image, like a button, from 3 different images - one left side, the middle that would be stretched, and the right side. I think there was something like that that takes 10 images too, but I'm not sure.
The point is, does anyone know the API call that did that, and if not, how could I go about drawing a simple button from 3 different images?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找 AppKit 函数 NSDrawThreePartImage。有几个类似的绘图函数。
I think you're looking for the AppKit function NSDrawThreePartImage. There are several drawing functions in a similar vein.