尼亚 发表于 2010-10-27 12:04:17

[求助]【如何把Graph画好的图保存下来啊】

如题 希望高人帮助

626488 发表于 2010-10-28 22:06:20

截屏吧

626488 发表于 2010-10-30 13:13:39

可以吗

cvifan 发表于 2010-10-30 18:26:22

要求自动就得编程,只是保存图片手工保存就是二楼说的截屏

cvifan 发表于 2010-10-30 18:28:21

自动操作需要首先获取控件图片,用下面函数可以实现。
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);

cvifan 发表于 2010-10-30 18:28:45

获取到图片后再保存到文件。
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]
查看完整版本: [求助]【如何把Graph画好的图保存下来啊】