<!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> </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> </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> </DIV>
<DIV><FONT face="Courier New" size=2><SPAN class=310243623-02052000> -
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 >> #pixelAt:put: speed<BR><BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT>
<BR>Andres Valloud wrote:
<P>> > Is there anything faster I can do? for example using Balloon
somehow? <BR>> <BR>> Are you trying to do that directly on the World's
canvas? Did you try to <BR>> draw them in a buffer and then draw the buffer
form?
<P> Eh! Andres! (que haces? como va todo por ahi?)
<P> I'm not sure what am I doing, I'm just drawing on the
canvas I get as argument <BR>in Morph >> #drawOn: <BR>
So you think I should use an intermediate Canvas for this?
<P> Thanks!
<P> Liencistas Bye! (just for spanish
speaking people, sorry) <BR> 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>
<BR> --- For a personal reply use gera@core-sdi.com
</P></BLOCKQUOTE></BODY></HTML>