rollout rendertool "渲染工具" 193 height:300 ( GroupBox grp2 "RenderTool" pos:[8,8] 176 height:248 button btnSave "Save" pos:[16,32] 64 height:24 dropdownList BitmapType "" pos:[88,32] 88 height:22 items:#(".jpg", ".tga", ".png", ".tif") label lbl6 "Width" pos:[24,72] 40 height:16 label lbl7 "Height" pos:[24,96] 40 height:16 spinner spnWidth "" pos:[88,72] 88 height:16 range:[0,100000,640] type:#integer spinner spnHeight "" pos:[88,96] 88 height:16 range:[0,100000,480] type:#integer button btnRender "Render" pos:[24,128] 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 outputspnWidth.value outputheight:spnHeight.value outputfile:savepath save rending close rending ) ) createdialog rendertool