我想用C#作画 [英] i wanna make a PAINT in C#
本文介绍了我想用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.
这篇关于我想用C#作画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文