將圖像發送到剪貼板如何將圖像保存到剪貼板以便粘貼到其他程序中,類似於 Graph Builder 中的 Copy Graph?
這會將圖像保存為文本:
img = Open("$Sample_Images/black rhino footprint.jpg", jpg);
Set Clipboard( img );
但我無法將其粘貼到電子郵件等中。
回复:將圖像發送到剪貼板這段代碼更簡單;不新窗戶必需的。
Names default to here( 1 );
//Get an image from "New image()", "<< Get Picture", etc:
img = New image("$Sample_Images/black rhino footprint.jpg");
pb = Picture Box( img );
pb << Copy Picture;
回复:將圖像發送到剪貼板您的獲取圖片和保存圖片消息讓我想起了複製圖片,它確實適用於圖片框。利用圖片框和復製圖片提供以下功能。必須有一個更直接的方法,但...
Names default to here( 1 );
PicToClipboard = Function( {img},
win = New Window("temp",
pb = Picture Box( img )
);
pb << Copy Picture;
win << Close Window();
);
<BR />//Get an image from "New image()", "<< Get Picture", etc:
img = New image("$Sample_Images/black rhino footprint.jpg");
<BR />//Save it to the clipboard
PicToClipboard( img );回复:將圖像發送到剪貼板只保存您想要的圖形然後用其他程序將其取回可能更直接
//run this again Abrasion.jmp from the sample data
obj=Distribution(
Continuous Distribution(
Column( :Abrasion ),
PpK Capability Labeling( 1 ),
Customize Summary Statistics( N Missing( 1 ), N Unique( 1 ) )
)
);
r = obj << Report;
//three ways to get a picture
bb2 = r[border box (2)] <<GET picture=""></GET>
我有興趣嘗試獲得將圖形粘貼到剪貼板並用其他東西拾取它的想法。
我使用此表達式將數據表複製到剪貼板:
main menu("Copy With Column Names")
我試過這種方法來獲取圖像,但它似乎不起作用。
bb2 = r[border box (2)] << select;
current window()<<MAIN menu=""></MAIN>
當我通過這個時,我只得到評估的表達式,而不是圖像。