On Wednesday, April 26, 2017 at 12:09:54 PM UTC+8, Daniel Prager wrote:
> Much as I enjoy making images using 2htdp/image it does get a tad slow as 
> complexity increases.
> 
> I currently have a program in which I generate images in 2htdp/image and 
> translate them into bitmap%s per racket/gui and render on canvas%'s via a dc.
> 
> Speed has become sluggish and I'm going to need to move away from 2htdp/image 
> to address this.
> 
> A typical image is built up out of lots of above, beside, overlay, square, 
> and triangle calls. 
> 
> Does anyone have a "clever" way to do this programatically (rather than a 
> manual re-write with lots of absolute calculations replacing heights and 
> widths)?

You could try using the pict module, as a pict can be drawn directly to a 
canvas using `draw-pict`.  This assumes that the performance degradation is 
caused by using the intermediate bitmap% object.

Alex.


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to