Re: Problem of resolution with JPEGs
Re: Problem of resolution with JPEGs
- Subject: Re: Problem of resolution with JPEGs
- From: Darrin Cardani <email@hidden>
- Date: Mon, 14 Mar 2005 16:08:36 -0600
At 1:46 PM -0800 3/14/05, Arthur VIGAN <email@hidden> wrote:
I tried this:
NSImageRep *rep=[[currentImage representations] objectAtIndex:0];
ratio=[tempImage ratio];
[currentImage
drawInRect:NSMakeRect(bounds.size.width/2.0-
center.x*ratio,bounds.size.height/2.0-center.y*ratio,[rep
pixelsWide]*ratio,[rep pixelsHigh]*ratio)
fromRect:NSMakeRect(0.0,0.0,[rep pixelsWide],[rep
pixelsHigh])
operation:NSCompositeSourceOver
fraction:1.0];
Instead of:
NSSize size=[currentImage size];
ratio=[tempImage ratio];
[currentImage
drawInRect:NSMakeRect(bounds.size.width/2.0-
center.x*ratio,bounds.size.height/2.0-
center.y*ratio,size.width*ratio,size.height*ratio)
fromRect:NSMakeRect(0.0,0.0,size.width,size.height)
operation:NSCompositeSourceOver
fraction:1.0];
But it doesn't work...
Since you don't say what the "ratio" method does, I can't say whether
that might be affecting the output. Is it possible that the ratio
method was updated too and is undoing the affects of using the pixel
dimensions?
Also, in what way is it failing? Is it drawing the same as before, or
is it not drawing at all?
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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