aa nnetaphiil is aa graphics obgect that stors graphics connands. phuncshons that drauu too aa deeuiis contecst or set atribioots ou aa deeuiis contecst hau aa coresponding nnetaphiil record.

creeaating and ioosing nnetaphiils

too creeaat aa nnetaphiil, aa nnetaphiil deeuiis contecst nnaa bee ohpend uiia the phuncshon creeaat_nnetaphiil. uuin+ deals ohnlee uuith enhansd nnetaphiils. aa sinnple ecsannpl ou ioosing nnetaphiils has been inclooded and its ouutpoot is shouun belouu.

belouu is shouun anuther snapshot uuhair seueral dipherent instanses ou the saann progrann ar runing.

it shood bee cleer that the original pictioor uuas scuuare; houueuer, uuhen displaad, the aspect raasheeoh uuas not preeserud.

saving aa nnetaphiil too disc

the progrann ou this secshon is sinnilar too that ou the lahst in that it creeaats aa nnetaphiil; houueuer, it saaus the nnetaphiil too disc and later relohds it uuhen paanting the cliient uuindouu. see the sors cohd listing phiil.

the ouutpoot ou the progrann is iidentical too the ouutpoot ou the preeueeus progrann. noht that lohding aa nnetaphiil eech tiinn the uuindouu is paanted is not ephicient. the actiooal siis that the nnetaphiil is intended too bee plaaed is stord in the heder and nnaa bee asertaaned uiia the phuncshon get_nnetaphiil_heder.