Drawing fliker
Hi
In my sample application when files that have been shown are large and
i want refresh or repaint them ( i.e. in Zooming time ) i see drawing fliker !
it dosent differ Erasing background flag in Draw function be True or False.
This problem dosent ocur in Global Mapper Software .
also this is in Global Mapper Sample .
(i am programming in vc++6 )
In my sample application when files that have been shown are large and
i want refresh or repaint them ( i.e. in Zooming time ) i see drawing fliker !
it dosent differ Erasing background flag in Draw function be True or False.
This problem dosent ocur in Global Mapper Software .
also this is in Global Mapper Sample .
(i am programming in vc++6 )
Comments
-
You need to draw to an offscreen bitmap and then BitBlt that to the screen. The Global Mapper application does this, but for simplicity the sample application does not.
The basic steps are to simple create an offscreen DC and and offscreen bitmap, select that offscreen bitmap into the offscreen DC, render to the offscreen DC (i.e. use GM_DrawLayerList), then BitBlt the contents of the offscreen DC to your paint DC once you complete drawing. This should eliminate any flicker.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com -
Dear Mike
hmmm Ok thanks !
is it possible using Direct Draw ?
and have any advantage ? -
There is not really any advantage to using DirectDraw with the Global Mapper SDK, but if you want to use it you would likely want to use the GM_DrawLayerListToMemory function to render the SDK data to a memory buffer that you have tied to a DirectDraw surface.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Support
support@globalmapper.com
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website