[Top][All Lists]

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

Re: Saving image to a file.

From: Tima Vaisburd
Subject: Re: Saving image to a file.
Date: Mon, 10 Nov 2003 22:06:55 -0800
User-agent: KMail/1.4.3

Adam Fedor wrote:

> There's a work-around now. Try something like this:
> NSBitmapImageRep *brep;
> [myImage lockFocus];
> brep = [NSBitmapImageRep alloc] initWithFocusedViewRect: someRect];
> [myImage unlockFocus];

> data = [brep TIFFRepresentation];

It worked for xlib backend. However, when using the art backend
-initWithFocusedViewRect: method threw an exception (gui/back 0.9.0):
      Uncaught exception WindowServerInternal, reason: subclass
      ARTContext(instance) should override GSReadRect:

Does anybody know how to make it work?
Thank you,

reply via email to

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