Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我记得有一种方法可以从 3 个不同的图像中拼凑出一个图像,比如一个按钮——一个左侧,一个将被拉伸的中间,以及一个右侧。我认为也有类似的东西需要 10 张图像,但我不确定。
关键是,有谁知道执行此操作的 API 调用,如果不知道,我怎么能从 3 个不同的图像中绘制一个简单的按钮?
谢谢。
我认为您正在寻找 AppKit 功能NSDrawThreePartImage。有几个类似的绘图功能。