[sane-devel] Can anyone tell me what's going on with this?

Julien BLACHE jb at jblache.org
Wed May 13 19:45:46 UTC 2009


Mark Pemburn <mark at pemburn.com> wrote:

Hi,

>    //*** Create a NSBitmapImageRep to handle conversion from PNM to TIFF
>    NSBitmapImageRep * pnm = [NSBitmapImageRep alloc];

You don't need to build a PNM to convert it to a TIFF.

You can feed the raw RGB, gray or binary data directly to an NSBitmap
or NSImage and display it. Can't remember the details, it's been a
while since I last did Cocoa stuff.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169



More information about the sane-devel mailing list