[求助]【如何把Graph画好的图保存下来啊】
如题 希望高人帮助 截屏吧 可以吗 要求自动就得编程,只是保存图片手工保存就是二楼说的截屏 自动操作需要首先获取控件图片,用下面函数可以实现。Obtains a bitmap image from a control and stores it in a bitmap object. You can pass the bitmap ID this function outputs to any function that accepts a bitmap, such as CanvasDrawBitmap or ClipboardPutBitmap.
You can use this function on images you create using functions such as DisplayImageFile, InsertListItem, PlotBitmap, SetImageBits, or SetCtrlAttribute with the ATTR_IMAGE_FILE attribute.
You can discard the bitmap object by passing its ID to DiscardBitmap.
Prototype
int GetCtrlBitmap (int Panel_Handle, int Control_ID, int Image_ID, int *Bitmap_ID);
获取到图片后再保存到文件。
Saves a bitmap image to a .bmp file. This function returns an error if you attempt to save a transparent bitmap or a bitmap that originated from a metafile.
Prototype
int SaveBitmapToBMPFile (int Bitmap_ID, char Filename[]);
页:
[1]