[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Noob
From: "Krupnick, Michael [ETHUS]" ####@####.#### Date: 14 Jul 2004 14:46:09 +0100 Message-Id: <BB963A85574EDB43A931C66EDB5BEA0D0358B903@ethussoexs1.na.jnj.com> Ok, so i been playing arround with nano-x and i love it, is fantasitly(sp?) easy...quick question tho and i am sorry for using this as a Q/A form if it is just ment for developers tell me and i wont E-mail again. I am drawing a bitmap and placing items (boxes/text) on top of it. The way i chose to move items arround on my screen is to re-draw the bitmap then re-draw the items in a new location. This makes the screen flicker and takes some time to re-draw the image. Is there a way to do this more efficently like can i create a window on top of my bitmap window that is tranparent and just clear that window and re-draw the items since the background image never changes? -Michael | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Noob
From: "Greg Haerr" ####@####.#### Date: 14 Jul 2004 17:42:51 +0100 Message-Id: <03c601c469c1$7929be80$3aba46a6@xmission.com> : Is there a way to do this more : efficently like can i create a window on top of my bitmap window that is : tranparent and just clear that window and re-draw the items since the : background image never changes? You can't just "redraw" the items since the bitmap underneath still needs to be drawn when the items are moved. To avoid flicker, you can draw the bitmap and items into an offscreen window, using GrNewPixmap instead of GrNewWindow. When you want to display the offscreen window, use GrArea to display the entire are on top of the old area. Since most items will remain the same, the flicker will stop, and the items will appear to move smoothly. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |