Re: resolution independent [NSImage drawInRect]
Re: resolution independent [NSImage drawInRect]
- Subject: Re: resolution independent [NSImage drawInRect]
- From: Andrew Bush <email@hidden>
- Date: Wed, 20 Sep 2006 18:51:12 +1200
Hi Peter,
thanks for the response :)
What it (and I) do is basically check if the image's stated width and
height in # of pixels matches up with the image rep it opens with and
if so it adds a new rep with the adjusted size. So if the image data
says "I'm 1000 pixels wide" but the image rep says "I'm 220 pixels
wide" you know it is being scaled because of high dpi.
thats sounds good, Ill give it a go.
Yours cheerfully,
Andrew Bush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden