I would like to render Form to bitmap... Is it possible in .net 2.0?
相关问题
- Generic Generics in Managed C++
- How do I bind a DataGridViewComboBoxColumn to a pr
- Partial Form Class C# - Only display code view for
- Can we add four protocols to ServicePointManager.S
- How to properly handle form closing when using bac
相关文章
- How to create a MediaClip from RenderTargetBitmap
- Sort TreeView Automatically Upon Adding Nodes
- Where does this quality loss on Images come from?
- Missing partial modifier on declaration of type
- PropertyGrid - Possible to have a file/directory s
- Why do base Windows Forms form class with generic
- How to handle the TextChanged event only when the
- Difference between SuspendLayout and BeginUpdate
Sure, you can call
Control.DrawToBitmap()
to render a control to a bitmap. For more general drawing, you can create aBitmap
and then useGraphics.FromImage()
to create aGraphics
instance. You can then draw to this graphics instance as normal.Here's a simple form that can draw itself (just add a button and double click it to add the Click event handler: