• Aucun résultat trouvé

You rrust focus the gratPort on yo,rc view befOre call~ tnese rMines

Dans le document The Usa Applications (Page 46-49)

3.7A.1 ~ RoJtJnes

PROCE1RE MNeTd...

ttl. v:

L~

MNeTm.. moves the

pen

to location (tuI) In view coordlnates. ~ ~ Is

performed.

PRO(E1RE ~ (eI\. eN: LaGNT);

~ rroves the pen a dlstfme of CI'I oorlzontally nJ

*

vertically

trom

Its

current location; It calls

MNeTt:l..(h+ctUt..w),

Where

(tuI)

Is

the

current

location In view coordinates. 1lle positive directions are to the rlg'lt En2c doWn. No ~ Is perfOrmed.

PROCaJ·p£ UnaTm.. ~

v:

~

UneTd... draWS a line

trom

the

current

pen location to the location speclfled (In view

coordlnates)

by

h

;n1

v.

The

new pen

locatloo Is (tuI) after the

ltne

Is draWn.

PROCEX..RE LIneL (eI\. dV: L~

LIneL dI1r.'s 8 line to the locat1on that Is 8 dlstfme Of CIl

nortzmtally

rid dV vertically

trom

the

current

pen locaUm;

It cans

UneT~~ Where (tuI)

Is

tne

current locaUoo.

The

poslUve

dlrecUOOs

are to

tne rl~t ald doWn. The pen locaUon beComes tne coordlnates of the En1 of the Une after

tne llne

Is

draWn.

L/$II TOOlKIt Refen!nce ~

3.7.4.2

Qi4IlIC

qeatlms m ~

~ FnmeLRect (r: ~

FnmeLRect draWS 8'l ouU1ne ).1st inside tile specified recta'lgle, using the

current views pen pattem, mode, and size. 1he ouU1ne Is as wide as the pen w1dUl crld

as

tall as tile pen hel~t. It

Is

draWn with tne the current pen pattern (&:rAIt1 axxlrtJlng to tne pattern tnrlSfer mode (p MJde~ Tne pen lOcation Is not eta _ by this proceclJre.

~ PatnU..Rect (r. ~

PatnU..Rect paints tne specified recta'lgle with tne current pen pattern and mode. The rectangle 00 the bitmap

Is

fllled wltn the pPat, CDX)~ to the

pattern tra ~er mode specified by II MJde. The pen location Is not ctwlged by this proceclJre.

~ EIaseLRect (r. ~

EraseLRect paints the specified rectangle '4Ilth the current GrafPort'$ back-gJ'OlRJ pattern

twat

(In patCq)y mode~

ne

GrafPort's p-Pat. en:! pMlde"

are Ig1Ored; the pen lOcation Is not ~cta~ "

PRCXEX.RE IrM1LRect (r. ~

IrM1LRect Inverts the pixels erolosed by the specified rec~le: f!NeTy White

pixel becomes black

am every

black pixel becomes White. The GlafPort's

pPat, II MJde,

ens

R*Pat

are

all Ig"med; the pen locaUoo Is rot ~ PRCX:EI1RE Fl1LRect (r.

LRect:

IPat: LPat~

Fl1I..Rect fills the specified rectangle with the given pattern (In patCq)y mode~ 1he GrafPort's ~ pMJde,

em twat

are all l~red; the pen

location is rot Char ~

3.7.A3 Gi8Jldc qeatIons .... 0V8ls

PRCXHlLRE FraneLOV8l (r. ~

FraneLovat· draWs al ouU1ne ).1St lnslde the oval that flts inside tile specified

rec~le.. 1te outline Is

as

wide

as

the pen width

am as tall as

the pen

hel~ It Is draWn with the prPa\, accordlng to the pattern tJar.sfer mode

specified by pMJde. The pen location Is rot

cra9ld

by thls procedJre.

PROCE11.RE Pak1tL.0V8l (r. ~

Pak1tL.0V8l paints 8'l oval )at Inslete the speclfled l8Cta'lgl8. The OWl Is flllad with tile pen pattern pPat, acco~ to the pattern

tra.fer

mode

specified by

PI

MJde. The pan location

Is

rot cta'9d by this procedJre.

PROCE:UI: EraseLOV8l (r. ~

EmseLovat paints CI'l oval ).1st inside tile specified rect.arge with the current

backg1"om pattern

twat

(In patCcJpy mode~ The pen pattern

JI'Pat

CIld the

pattern tnnsfer mode prMJde are t(JOl'ed; tile pen locattcn Is not chal9'C1

L/ss TooJKJt ReIWence /t1InJ8J

3.7AA

GI"'c

Operatlons .01 RolnB1-COmer RectfnIeS

PRCJC:t7I1RE FnmeLRRect (r. L.Rect; CMIl~ ~ NIE~

FnmeLRRect draWS til OUUlne ),1st inside the speclfled ro.niBd-comer

rec~le, us~ the current

pen

pattern, roode, an:J size. OV8lWldth ani ovaIHBl~ specify the dicrneters Of curvature for the comers. 1lle outline Is as wide as Ule

pen

width cn:J as tall as the pen hel~l The

pen

.locatlm Is rot ~ by this pl'OC8Cl.lr8.

PRCX::HU£ PaInU...RRect (r.

LRect.:

CMIl~ ~ NIE~

PaIntLRRect paints the specified rou Ided-OOrner recta"lgle with tne current GIafPOrt's pen pattern

em

rmde. OV8lWldUl cn:J ovaIlEJIg't specify the

diameters of curvature for the comers. The ro.nted-comer recWge CI'l the bitmap Is fllled with the prPat, acco~ to the pattern tnnsfer roode specified by pMldB. The

pen

locaUmls

rot chal9'd

by this

proceclAre.

PRCXE1RE EmseLRRect (r. L.Rect; CMlWldUl. CMIII ~ NIE~

ErasaLRRsct paints the specified ro.niBd-comer recta1gle· with tne current GlafPort's baCkgr0.n2 pattern bkPat (In ~ roode~ OV8IWldth

em

~ speclfy the diameters Of curvature for the comers. Tne GIafPOrt's pf>at crld JI fitJde are I~red; Ule

pen

locaUm Is rot challge(1

PRCX::HU£ hIrtLRRect (r:

LRect.:

CMIl~ oval ~ NIE~

hIrtLRRect Inverts the pixelS arolosed by the speclfled reJU'Gd-comer recW9e: every white plxel beca'nes bleD

cnt

every bla:;k plxel beca'nes

FI1LRR8ct fills tne speciftedro.niBd-comer recWge with the given pattern (In patCqJy roode~ OV8IWIdth

am

oval _ _ specify the diameters of

curvature fOr the comers. Tne p-Pat., pi fitJde, cn:J I*Pat are all t~red; the

pen

locaUO'l Is rot challge(1

LI$II ToolKIt ReRmJnce I-1BfUJJ

uslrYJ the current GrafPort's

pen

pattern, roode., and size. stm1.PfQle lrdcates where· the arc begins en:J Is treated rood~· ~ deflnes the extent Of the

arc.

1lle ~es

are given

In

postUw or negaUve

degreeS;

a poslUve

~e goes clockwise., '-"lIe a negatlve 8'9\e

goes

COU'lterolOCkwlse. zero degrees Is at 12 o'clOCk tll~ goo (or -27lrlls at 3 o'clOCk" lao- (or -lao-) Is the current GrafPort's backgrou'YJ pattern I*Pat (In patCqJy mode~

StartArge and acArQIe define tne arc of the wedge as In FnrneArc. The lworat the·pen locatlmls

rot ctag:n

Dans le document The Usa Applications (Page 46-49)

Documents relatifs