我想用C#作画
问题描述:
我如何在程序中调整图像大小并拖动图像,请帮助我
how can i resize and drag an image in my program, plz help me
答
调整图像大小很容易,只需创建所需大小的新图像并将现有图像绘制到其中.拖动意味着我想将位图画笔定义为要拖动的图像.
实际上有一个源于Paint.NET的程序,可以作为参考来帮助您学习如何做所有这些事情.
Resizing images is easy, just create a new image of the desired size and draw the existing image into it. Dragging means you''d define a bitmap brush to be the image you want to drag, I assume.
There''s actually a program with source called Paint.NET which you could use as a reference to help you learn how to do all these things.