Foxtable(狐表)用户栏目专家坐堂 → addimage 函数异常


  共有6621人关注过本帖树形打印复制链接

主题:addimage 函数异常

美女呀,离线,留言给我吧!
nuoyan89
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:503 积分:3495 威望:0 精华:0 注册:2020/10/9 8:45:00
addimage 函数异常  发帖心情 Post By:2022/8/8 10:29:00 [只看该作者]

老师,请看看图1、图2异常,谢谢!
内部函数代码:
Dim name As String = args(0)
Dim cnt As String = args(1)
Dim img = getimage(name)

Dim bmp As new bitmap(48, 48) '宽高
Dim g = graphics.fromimage(bmp)
g.DrawImage(img,3,3,36,36)
g.DrawEllipse(New Pen(Color.Red,15),30,2,15,15)
Dim fnt As New Font("宋体",10)
g.DrawString(cnt,fnt,Brushes.White,32,2)
Dim fl As String =  name.Split(".")(0) & "_c.png"
bmp.save(ProjectPath & "Images\" & fl)
bmp.dispose
Return fl
主界面代码:
Dim gps() As  String  = {"采购申请业务","生产计划过程","设备管理业务","生产过程处理","工时业务处理","刀具业务过程","通知单据审核","质量检测处理"} '定义分组名称
Dim nms() As String = {"采购申请审核","采购申请驳回","停机结束跟踪","待关闭","进行中","待入库","加工不良审核","设备验收操作","计划审核确认","设备维修记录","生产过程异常","待配刀明细","待还刀待结案","已完工漏扫码","已完工待结案","不良品处理","不良品结案","管理工时批准","工时补助审核","工时补助驳回","考勤审核","刀具修磨审核","刀具报废审核","刀具检测","试刀协议","试刀报告","采购确认","收退处理","单据明细审核","单据明细驳回","来料检测审核","过程不良判定","过程不良确认","过程单据上传","转入废品仓库","废品单据打印","过程点检审核"} '定义标题
Dim ics() As String = {"43d","42d","41d","40d","39d","38d","37d","36d","35d","34d","33d","32d","31d","30d","29d","28d","27d","26d","25d","24d","23d","22d","21d","20d","19d","18d","17d","16d","15d","14d","13d","12d","11d","10d","9d","8d","7d"} '定义图标键值
For Each gp As String In gps
    Dim vg As WinForm.ListViewGroup = lvw.Groups.Add() '增加分组
    vg.Name = gp '指定分组名称
    vg.Text = gp '指定分组标题
Next


图片点击可在新窗口打开查看此主题相关图片如下:2.jpg
图片点击可在新窗口打开查看



图片点击可在新窗口打开查看此主题相关图片如下:1.jpg
图片点击可在新窗口打开查看


 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110758 积分:563716 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/8/8 13:47:00 [只看该作者]

不存在这个文件

Dim name As String = args(0)
msgbox(name )
Dim cnt As String = args(1)
Dim img = getimage(name)

 回到顶部
帅哥哟,离线,有人找我吗?
cd_tdh
  3楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐精 帖子:3209 积分:21331 威望:0 精华:0 注册:2016/3/28 16:57:00
  发帖心情 Post By:2022/8/8 16:35:00 [只看该作者]

建议存表里面,维护方便,你这样维护不方便啊。

 回到顶部
美女呀,离线,留言给我吧!
nuoyan89
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:503 积分:3495 威望:0 精华:0 注册:2020/10/9 8:45:00
  发帖心情 Post By:2022/8/8 17:03:00 [只看该作者]

存在表里不知道咋样操作图片点击可在新窗口打开查看

 回到顶部