Do you know where your variables are? | |
PerlMonks |
Displaying changing images in Wx:: produces flickerby isync (Hermit) |
on Feb 27, 2009 at 15:23 UTC ( [id://746906]=perlquestion: print w/replies, xml ) | Need Help?? |
isync has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I've got a small problem related to WxPerl: I am constructing a GUI that displays an image in a corner, on top of a WxPanel. Based on actions somewhere else in the app, the app switches the displayed image. And as it seems over the great variety in approaches to display an image, I haven't got it quite right.
Now, when I exchange the displayed image with I experience flickering on the exchange. The image disappears for a second, or I can see "the switch taking place" or it starts out as a smaller square and zooms in on the 320x240 size (on windows) or (on Linux) first a formerly displayed image is shown, then replaced by the current one... something like that. The parent window, a notebook, has wxCLIP_CHILDREN set - no effect. So would anyone please look at the above code and tell me if I am doing something completely wrong here. Or tell me that it is likely that the problem lies elsewhere in my code. (and yes, I do need the resize on the exchange, as some displayed images might not be of 320x240 size, same with the check, as images might be damaged...)
Back to
Seekers of Perl Wisdom
|
|