Re: Dividing NSView to subviews

2009-04-28 Thread Naresh Kongara
Hi, For larger views I'm not even getting the blur view, its giving some garbage output... If the view needs to be divided into 20 to 25 images , each image of print rect size. Thanks NareshK On Apr 27, 2009, at 11:42 AM, Peter N Lewis wrote: On 27/04/2009, at 12:16 , Naresh Kongara wr

Re: Dividing NSView to subviews

2009-04-26 Thread Peter N Lewis
On 27/04/2009, at 12:16 , Naresh Kongara wrote: in the view drawing code i didn't changed any thing. After preparing the view from which i need to get the images, i just replaced the line NSImage *img = [[[NSImage alloc] initWithData:[view dataWithPDFInsideRect:sourceRect]] autorelease];

Re: Dividing NSView to subviews

2009-04-26 Thread Naresh Kongara
Hi, To get the image, I added the below method (what peter has given) in NSView's category - (NSImage *)imageFromRect:(NSRect) sourceRect { NSSize imgSize = sourceRect.size; NSBitmapImageRep *bir = [self bitmapImageRepForCachingDisplayInRect:sourceRect]; [bir s

Re: Dividing NSView to subviews

2009-04-25 Thread Uli Kusterer
On 24.04.2009, at 14:02, Naresh Kongara wrote: Thanks peter for your reply, Now there is some improvement in the performance , but the image is not that much clear as the image we are getting with dataWithPDFInsideRect: is there any way to remove that blur. Oh, forgot to include a link

Re: Dividing NSView to subviews

2009-04-25 Thread Uli Kusterer
On 24.04.2009, at 14:02, Naresh Kongara wrote: Thanks peter for your reply, Now there is some improvement in the performance , but the image is not that much clear as the image we are getting with dataWithPDFInsideRect: is there any way to remove that blur. You're probably drawing the

Re: Dividing NSView to subviews

2009-04-24 Thread Michael Ash
On Fri, Apr 24, 2009 at 8:02 AM, Naresh Kongara wrote: > Thanks peter for your reply, > > Now there is some improvement in the performance , but the image is not that > much clear as the image we are getting with dataWithPDFInsideRect: > > is there any way to remove that blur. The technique that

Re: Dividing NSView to subviews

2009-04-24 Thread Naresh Kongara
Thanks peter for your reply, Now there is some improvement in the performance , but the image is not that much clear as the image we are getting with dataWithPDFInsideRect: is there any way to remove that blur. Thanks, nareshk On Apr 24, 2009, at 10:40 AM, Peter N Lewis wrote: On 23/

Re: Dividing NSView to subviews

2009-04-23 Thread Peter N Lewis
On 23/04/2009, at 14:11 , Naresh Kongara wrote: I have a NSView which i want to divide into to required sub views. I implemented it using NSView's dataWithPDFInsideRect: (NSRect )aRect, i.e constructed a image view with the data i got . This process is taking long time if the view is larg

Re: Dividing NSView to subviews

2009-04-23 Thread Randall Meadows
On Apr 23, 2009, at 12:11 AM, Naresh Kongara wrote: Hi All, I have a NSView which i want to divide into to required sub views. I implemented it using NSView's dataWithPDFInsideRect: (NSRect )aRect, i.e constructed a image view with the data i got . This process is taking long time if the