0
我有一個程序,將圖像從鏈接設置爲圖片框。C#調整webclient的圖像大小
例如:
pictureBox1.Load( 「http://www.e357.net/wordpress/beingernest/wp-content/uploads/2010/07/questionmark-150x150.jpg」);
但由於pictureBox的大小是100x100,圖像被削減。
如何在不更改圖片框大小的情況下調整圖片大小?
使用WinForms的Im。
謝謝。
在提出這些問題之前,請做一些調查。請把你的代碼放在這裏。試試這個:http://stackoverflow.com/questions/1195064/fastest-image-resizing-in-net –
首先獲取圖片,並根據您的需要調整大小,然後在Picturebox上加載。 –
[Picturebox Bitmap Scaling]的可能重複(http://stackoverflow.com/questions/14207895/picturebox-bitmap-scaling) – MarkusEgle