Hello

I'm using plot-snip% objects in my application to display plots.
Data and parameters of these plots needs to change based on GUI
input.  To do that I updated the snip-canvas% object to allow
replacing the snip held in the editor-canvas%.  Unfortunately,
whenever a new snip is inserted, even though I resize the snip to
the canvas size, the snip seems to be drawn in three stages:
first the snip at its original size is drawn, next, that image
appears to be scaled as a bitmap resulting in a blurred image and
finally, the image is drawn at the right size and it is sharp.

I uploaded my code here, unfortunately this is the smallest code
that can demonstrate the problem.  The GitHub GIST also contains
screenshots illustrating the behavior.

https://gist.github.com/alex-hhh/5defaa52f6c87cbb7ddcf40cc4dd863f

My question is, how is the snip-canvas% object supposed to resize
the snip such that the snip is only drawn once at the correct
size?

While for this simple demo, the effect is barely noticeable, in
my application it is very noticeable, since the plots have a lot
of data and take significant time to redraw.

Best Regards,
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