<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">


<META content="MSHTML 5.00.2614.3401" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>Yes - use a 
cache form for drawing the points directly and pass the entire image to 
FormCanvas, ala:</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=310243623-02052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>"Create some 
random points"</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>rnd _ Random 
new.<BR>points _ (1 to: 5000) collect:[:i| (rnd next @ rnd next * 400) 
asIntegerPoint].</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>"Make us a 
canvas"<BR>fc _ FormCanvas on: Display.<BR></SPAN></FONT><FONT 
face="Courier New" size=2><SPAN class=310243623-02052000>"Create a cached form 
for drawing all these points"<BR>cacheForm _ Form extent: 400@400 depth: Display 
depth.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>"Setup 
BB"<BR>bb _ BitBlt toForm: cacheForm.<BR>bb combinationRule: Form over.<BR>bb 
width: 1; height: 1.<BR>bb fillColor: Color red.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>"Now draw 
these points offscreen"<BR>points do:[:pt| bb destOrigin: pt; 
copyBits].</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>"And finally 
paint the entire image"<BR>fc paintImage: cacheForm at: 0@0.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=310243623-02052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>This should 
be a lot faster than anything else.</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=310243623-02052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000>&nbsp; - 
Andreas</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" size=2><SPAN 
class=310243623-02052000><BR></SPAN></FONT><FONT face=Tahoma 
size=2>-----Original Message-----<BR><B>From:</B> Gerardo Richarte 
[mailto:core.lists.squeak@core-sdi.com]<BR><B>Sent:</B> Tuesday, May 02, 2000 
6:20 PM<BR><B>To:</B> squeak@cs.uiuc.edu<BR><B>Cc:</B> recipient list not 
shown<BR><B>Subject:</B> Re: BitBlt &gt;&gt; #pixelAt:put: speed<BR><BR></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT>&nbsp; 
  <BR>Andres Valloud wrote: 
  <P>&gt; &gt; Is there anything faster I can do? for example using Balloon 
  somehow? <BR>&gt; <BR>&gt; Are you trying to do that directly on the World's 
  canvas? Did you try to <BR>&gt; draw them in a buffer and then draw the buffer 
  form? 
  <P>&nbsp;&nbsp;&nbsp; Eh! Andres! (que haces? como va todo por ahi?) 
  <P>&nbsp;&nbsp;&nbsp; I'm not sure what am I doing, I'm just drawing on the 
  canvas I get as argument <BR>in Morph &gt;&gt; #drawOn: <BR>&nbsp;&nbsp;&nbsp; 
  So you think I should use an intermediate Canvas for this? 
  <P>&nbsp;&nbsp;&nbsp; Thanks! 
  <P>&nbsp;&nbsp;&nbsp; Liencistas Bye!&nbsp;&nbsp;&nbsp; (just for spanish 
  speaking people, sorry) <BR>&nbsp;&nbsp;&nbsp; Richie++ 
  <P>-- <BR>A390 1BBA 2C58 D679 5A71 - 86F9 404F 4B53 3944 C2D0 
  <BR>Investigacion y Desarrollo - CoreLabs - Core SDI <BR><A 
  href="http://www.core-sdi.com">http://www.core-sdi.com</A> <BR>&nbsp; 
  <BR>&nbsp; --- For a personal reply use gera@core-sdi.com 
</P></BLOCKQUOTE></BODY></HTML>