直接代码。。
import win.ui; import fonts.fontAwesome; import gdip.pen; /*DSG{{*/ var winform = win.form(text="aardio form";right=759;bottom=469) winform.add( button={cls="button";text="Button";left=550;top=43;right=671;bottom=99;z=2}; plus={cls="plus";left=20;top=21;right=341;bottom=321;iconColor=255;iconStyle={font=LOGFONT(h=-267;name='FontAwesome')};iconText='\uF00E';transparent=1;z=1}; plus2={cls="plus";left=462;top=194;right=709;bottom=408;bgcolor=10789024;foreRepeat="scale";foreground="C:\test.png";z=3} ) /*}}*/ winform.button.oncommand = function(id,event){ var bmp =gdip.bitmap(winform.plus.width,winform.plus.height) bmp.graphics.drawCachedBitmap( winform.plus.cacheBitmap) bmp.save("c:\test.png") } winform.show(); win.loopMessage();
发表评论