Re: Image Processing using Cocoa: newbee question

2013-03-14 Thread Jeffrey Robert Kelley
Lars, It’s not as high-level as Core Image, but here’s a good primer on obtaining raw pixel data: http://mikeash.com/pyblog/friday-qa-2012-08-31-obtaining-and-interpreting-image-data.html - Jeff Kelley On Mar 14, 2013, at 8:01 PM, Lars Sonchocky-Helldorf wrote: > Hi, > > I

Re: Image Processing

2010-12-12 Thread Dave Keck
See the CoreImage docs: http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Conceptual/CoreImaging/ci_intro/ci_intro.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Image processing in Cocoa

2008-09-26 Thread Helder da Rocha
Since you can't use NSImage, you could try Core Image. You can do all that with CGImage in your restricted environment. You can use a bitmap or layer context and then later render it on whatever view you wish. There is a good Core Graphics Quartz tutorial at http://developer.apple.com/docume

Re: Image processing in Cocoa

2008-09-25 Thread David Duncan
On Sep 25, 2008, at 3:52 AM, Christian Giordano wrote: I think I found what to do. I need to create a bitmap context from the bitmap and drawing there. It makes sense that everything drawn is handled by contexts of course, I'm just a bit concerned about performances. Internally NSImage will b

Re: Image processing in Cocoa

2008-09-25 Thread Christian Giordano
I think I found what to do. I need to create a bitmap context from the bitmap and drawing there. It makes sense that everything drawn is handled by contexts of course, I'm just a bit concerned about performances. Thanks, chr On Thu, Sep 25, 2008 at 7:35 AM, Christian Giordano <[EMAIL PROTECTED]>

Re: Image processing in Cocoa

2008-09-24 Thread Christian Giordano
Hi Helder, I found this post that can be really helpful when I will have to do my pixel operations: http://www.rodgutierrez.com/blog/2008/07/how-to-create-a-rgba-cgimagere.html I still have to find how to draw an CGImageRef in another one regardless the current context, I'm still wondering if thi

Re: Image processing in Cocoa

2008-09-24 Thread Christian Giordano
Thanks Mike, I can't use NSImage (guess why) but a subset. Btw, the problem I have is that I have a view which contains an image. I would like to draw in the image, not in the container view so I need to provide to the draw method the image context. Is this a good approach or all the drawing should

Re: Image processing in Cocoa

2008-09-24 Thread Mike Abdullah
On 24 Sep 2008, at 10:50, Christian Giordano wrote: Hi guys, is there some good tutorial around about how to manipulate bitmaps in Cocoa? I would be interested on: - copy portion of image over another with a mask (this should be pretty straight forward with quartz2d) [[NSImage alloc] initWi

Re: Image Processing

2008-04-07 Thread Kenny Leung
If you ask an NSImage for its size, the DPI in the image is taken into account. You can ask for pixelsHigh and pixelsWide in order to get the number of pixels. -Kenny On Apr 6, 2008, at 1:40 PM, Lorenzo wrote: Still working with image-processing... I have a source image 1680 x 1050 with (j

Re: Image Processing

2008-04-06 Thread Jens Alfke
On 6 Apr '08, at 1:40 PM, Lorenzo wrote: But when I ask for its size with NSSize imageSize = [sourceImage size]; I don’t get the real pixel size (1680 x 1050), but I get (504 x 315) The units of [NSImage size] are points, not pixels. If you read an NSImage from a file, it respects the DP