discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Question about cacheDisplayInRect:toBitmapImageRep:


From: Fred Kiefer
Subject: Re: Question about cacheDisplayInRect:toBitmapImageRep:
Date: Sun, 05 Apr 2009 23:53:29 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

oren wrote:
> Hi,
> I doubt the implementation of our cacheDisplayInRect:toBitmapImageRep:
> but i don't have 10.4 to test.
> It seems our implementation use [GSCurrentContext() GSReadRect: rect];
> to copy the existing data into the provided bitmap argument but
> shouldn't it invoke -display* over that bitmap? What if the view has
> never been drawn?
> 
> Apple doc says "Draws the specified area of the receiver, and its
> descendants, into a provided bitmap-representation object."

Yes, I think you are right here, the implementation of this method does
the wrong thing. But as far as I remember we are just not able to do the
right thing :-(

Currently GNUstep only has very limited support for drawing into an
image rep. Any code to fill this gap is greatly welcome.

Cheers
Fred




reply via email to

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