Recreates the cache bitmap, containing an image of the items that are not affected by the currently performed modification. This image is blitted to screen while dragging items, and the modified items are drawn over it.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public void RecreateCacheImage () |
Visual Basic Copy Code |
---|
Public Sub RecreateCacheImage () |
In order to repaint the screen quickly while modifying items or drawing new items, MindFusion.Diagramming caches the representation of all items not affected by the modification in an off-screen bitmap. When the mouse is moved, the cache bitmap is blitted to the screen and only the item being modified is redrawn. That provides for good performance while users create or edit the diagram interactively.
However, if an application changes the appearance properties of items in the cache while handling the MouseMove event, the changes won't be visualized correctly on the screen until the mouse button is released and drawing completes. Use RecreateCacheImage to recreate the cache bitmap so the changes in item's appearance are immediately visualized.