rollout rendertool "渲染工具" width:193 height:300 ( GroupBox grp2 "RenderTool" pos:[8,8] width:176 height:248 button btnSave "Save" pos:[16,32] width:64 height:24 dropdownList BitmapType "" pos:[88,32] width:88 height:22 items:#(".jpg", ".tga", ".png", ".tif") label lbl6 "Width" pos:[24,72] width:40 height:16 label lbl7 "Height" pos:[24,96] width:40 height:16 spinner spnWidth "" pos:[88,72] width:88 height:16 range:[0,100000,640] type:#integer spinner spnHeight "" pos:[88,96] width:88 height:16 range:[0,100000,480] type:#integer button btnRender "Render" pos:[24,128] width:141 height:24 on btnSave pressed do (getFullpath=getSavepath())--保存路径 on spnWidth changed val do (spnWidth.value=val) on spnHeight changed val do (spnHeight.value=val) on btnRender pressed do ( savePath=(Getfullpath+"\\"+$.name+BitmapType.selected)--(getFullpath+"\\"+"a"+BitmapType.selected) rending=render outputwidth:spnWidth.value outputheight:spnHeight.value outputfile:savepath save rending close rending ) ) createdialog rendertool