That didn't help!

I think I have to create my background directly in a NSImage.
At this moment I'm drawing in a double sized RB Picture and creating a new 
NSImageMBS(p, p.Mask).
Everything of the windowbackground is using double pixels.




Op 9 mei 2013, om 12:59 heeft Christian Schmitz 
<[email protected]> het volgende geschreven:

> 
> 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

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to