开发者

Is it possible to erase drawing made by NSRectFill?

开发者 https://www.devze.com 2023-03-16 10:12 出处:网络
I have been using NSRectFill to draw rectangles on the screen. I would like to erase t开发者_StackOverflowhese rectangles. I can\'t paint over them, as the back ground behind them is textured and can\

I have been using NSRectFill to draw rectangles on the screen. I would like to erase t开发者_StackOverflowhese rectangles. I can't paint over them, as the back ground behind them is textured and can't be replicated with a solid color. Is this possible?


I don't know much Objective-C, or Cocoa, so I can't give you details, but here's how my Windows oriented mind thinks:

Simply request a redrawing of the window, and then don't paint the rectangles.


Just draw the background again.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号