Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
复制System::Windows::Forms::DataVisualization::Charting::Chart^到剪贴板的最简单方法是什么?
System::Windows::Forms::DataVisualization::Charting::Chart^
非常感谢。
您可以通过内存流将其保存到位图,然后将其放在剪贴板上。像这样的东西:
MemoryStream^ pStream = gcnew MemoryStream(); yourchart->SaveImage(pStream, ChartImageFormat::Bmp); Bitmap^ pBmp = gcnew Bitmap(pStream); Clipboard::SetImage(pBmp);