[Top][All Lists]

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

Is the implementation of DPSsetgstate: in GSContext correct?

From: Banlu Kemiyatorn
Subject: Is the implementation of DPSsetgstate: in GSContext correct?
Date: Tue, 09 Sep 2003 14:34:56 +0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030902 Thunderbird/0.2

It saids,

"setgstate gstate setgstate - LEVEL 2

replaces the current graphics state by the value of the gstate object. This is a copying operation, so subsequent modifications to the value of gstate will not affect the current graphics state or vice versa. Note that this is a wholesale replacement of all components of the graphics state; in particular, the current clipping path is replaced by the value in gstate , not intersected with it. "

So I wonder if it is the right thing that DPSsetgstate: ctxt_pop the value into current gstate
without copying.

id aState;
gstate = [aState copy];

solved my problem. But I am not really sure with these.

reply via email to

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