[Squeak-fr] histoire de pochoir

Frédéric Ferrère frederic.ferrere at free.fr
Sam 19 Mai 08:42:48 UTC 2007


Bonjour à tous,

une petite question sur un petit problème de pochoir, peut être un bug ?

L'instruction suivante donne le pochoir (une Form) d'une image :

ImageMorph new image stencil


Je souhaite extraire une zone de l'image et d'en obtenir un pochoir :

(ImageMorph new image contentsOfArea: (Rectangle origin: 0 at 0 extent: 10 at 10)) stencil


j'obtiens alors l'erreur : "Error : Instances of UndefinedObject are not indexable"


Par contre si j'applique contentsOfArea sur le pochoir, pas d'erreur :

ImageMorph new image stencil contentsOfArea: (Rectangle origin: 0 at 0 extent: 10 at 10)


Est-ce normal ? Sachant que

ImageMorph new image

est un Form tout comme

ImageMorph new image contentsOfArea: (Rectangle origin: 0 at 0 extent: 10 at 10)

Merci

Cordialement,
--
FERRERE Frédéric



More information about the Squeak-fr mailing list