Re: drawRect: wrong scale in a programmatically created window
Re: drawRect: wrong scale in a programmatically created window
- Subject: Re: drawRect: wrong scale in a programmatically created window
- From: Graham Cox <email@hidden>
- Date: Sat, 16 Jan 2016 12:00:13 +1100
> On 15 Jan 2016, at 10:42 PM, Andreas Höschler <email@hidden> wrote:
>
> But how does NSBitmapImageRep know which pixel resolution to choose? How does it derive Pixels=1702x1798 when I create the imageRep with a {{0, 0}, {851, 899} rect
It has a ‘size’ property which can be different fron the ‘pixelsWide' and ‘pixelsHigh' properties. The ratio of these defines the resolution.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden