[GRAPHICS] WarpBlt >> How to Draw A Quad to a Quad?...
Ned Konz
ned at bike-nomad.com
Sun Feb 11 23:29:26 UTC 2001
On Sunday 11 February 2001 15:10, Ali Chamas wrote:
> How can i copy a rectangle from a source form onto a destination
> quadrangle of the Display? This is essentially the reverse of the
> copyQuad:toRect: primitive of the WarpBlt, in effect i am looking for
> something like -> WarpBlt>Instance>copyQuad: thePointsArray toQuad:
> thePointsArray. Can any of the graphics guru's out there help me?
>
Would Form>>copy:from:in:rule: work for you? The Display is just a kind of
Form, so all of the copy* methods should work.
Display copy: (100 at 100 extent: 100 at 100)
from: 0 at 0
in: Display
rule: Form over
copies (0 at 0-100@100) to (100 at 100-200@200) on the Display.
Another Form could have been used as the source.
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|