cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 1262|回复: 5

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

[复制链接]
发表于 2010-10-27 12:04:17 | 显示全部楼层 |阅读模式
如题 希望高人帮助
发表于 2010-10-28 22:06:20 | 显示全部楼层
发表于 2010-10-30 13:13:39 | 显示全部楼层
发表于 2010-10-30 18:26:22 | 显示全部楼层
要求自动就得编程,只是保存图片手工保存就是二楼说的截屏
发表于 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);
发表于 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[]);
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-5-4 12:46 , Processed in 1.226958 second(s), 7 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表