Am 09.05.2013 um 12:55 schrieb Jaap Cammeraat <[email protected]>:
> Hi Christian, > > I'm converting some off my apps and don't find the way how to do something. > > I have a NSWindowMBS with a CustumNSViewMBS. > The CustumNSViewMBS.DrawRect event has to draw the self created > windowbackground with my own curved edges. > > CustumNSViewMBS.DrawRect: > dim sf as double = mywindow.backingScaleFactor > g.shouldAntiAlias=True > g.drawAtPoint mywindowbackground(width/sf, height/sf), 0, 0, 0, 0, > width*sf, height*sf, g.NSCompositeCopy, 1.0 Well, I think the drawing function here expects the normal coordinates in points, not pixel. So you should have a double resolution image and draw it at normal coordinates. Like view is 100x100. Image is 200x200. And you draw g.drawAtPoint mywindowbackground(width*sf, height*sf), 0, 0, 0, 0, width, height, g.NSCompositeCopy, 1.0 Greetings Christian -- Read our blog about news on our plugins: http://www.mbsplugins.de/ _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
