| Create Canvas Documents with C1FlashCanvas > Using Metafiles to Render Graphics |
C1FlashCanvas makes it very easy to create documents, mainly because the object model mimics the well-known .NET Graphics model. However, not all methods available in the Graphics class are available in C1FlashCanvas. Plus, you may have existing code that draws to a Graphics object and that you do not want to rewrite even if most methods are very similar.
In these cases, you can reuse your existing .NET code by sending the drawing commands to a Metafile, then rendering the Metafile into C1FlashCanvas using the DrawImage command. This method allows you to expose any graphics you create as images or as Flash documents.
The metafiles could be generated by a reporting engine, drawing or charting program, or any application that can create metafile images.
Here is a result of replaying a metafile in Flash document:
