discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TIFFRpresentation problem


From: Fred Kiefer
Subject: Re: TIFFRpresentation problem
Date: Tue, 06 Mar 2007 17:25:02 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20060911)

Half Activist wrote:
> Hi,
> 
>     i wrote a little application, that locks focus on an NSImage, draws
> to it, then unlock the focus.
>     I then try to get the TIFFRepresentation data, but it always returns
> nil.
>     The same code works in Cocoa...and i do not use Cocoa specific things.
> 

This currently is a limitation of GNUstep. When drawing to an NSImage we
draw to a cached representation and TIFFRepresentation will just go
through the existing bitmap representations and return tiff data for
them. Both these operations are not what you need. So in some way you
are using "Cocoa specific things", as GNUstep currently hasn't
implemented them correctly.

And to be honest, I am not that clear, what the right implementation
would be. Should we create bitmap representations for images as well and
draw into them or allow to grap the content of a cached image
representation and return it as tiff? The later may not be to hard to
implement.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]