Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!yale!yale.edu!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!uunet!in2.uu.net!news.sprintlink.net!noc.netcom.net!ix.netcom.com!netcom.com!jco
From: jco@netcom.com (Jay)
Subject: Re: Masked Icons in VW 2.0
Message-ID: <jcoDDsI64.603@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
References: <40v9rj$j4f@hermes.is.co.za> <415434$oh3@wizard.pn.com>
Date: Thu, 24 Aug 1995 00:46:52 GMT
Lines: 14
Sender: jco@netcom5.netcom.com

Alex Morgan <alex@tmfi.com> writes:

>Be aware, however, that the OpaqueImage takes much longer
>to draw itself than an Image; if you have lots of these on
>screen at once, you may have a performance problem.

To improve the performance, create a CachedImage on both the image and the
shape before creating your OpaqueImage.  In other words, you'll have 
OpaqueImage figure: (CachedImage on: image) shape: (CachedImage on: shape).
CachedImage caches a host platform pixmap for the image (and shape), 
dramatically improving performance.

Jay O'Conor
jco@netcom.com
