需要有关使用WPF启动栅格绘图程序的建议 [英] Need an advice about starting a raster drawing program with WPF

查看:74
本文介绍了需要有关使用WPF启动栅格绘图程序的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉打扰您这个菜鸟问题!
我想开始为WPF编写一个简单的光栅绘图程序,该程序带有图层等(例如paint.net)作为学习项目. .
您对我应该从哪里开始有什么想法?我曾尝试找到类似的项目来寻找有关Google的想法,但我做不到.
哪些组件和基类适合尝试?

I''m sorry about bothering you with such noob question!
I''d like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project.
Do you have any ideas where should I start? I''ve tried to find similar projects to look at for ideas on google but I couldn''t.
What components and base classes are suitable to try?

推荐答案

WPF用于矢量图形,不适用于位图.

如果要在WPF中显示位图,并且需要能够在内存中有效地更新位图,请查看 RenderTargetBitmap [ ^ ]
WPF is meant for vector graphics, not for bitmaps.

If you want to display a bitmap in WPF and need to be able to efficiently update it in memory, look at the WriteableBitmap[^] class.

If you want to render WPF vector contents onto a bitmap, take a look at RenderTargetBitmap[^].


0 )启动Visual Studio

1)单击文件" |开始".新... Project ...

2)在随后的对话框的左侧,单击"Windows"

3)在右侧,单击"WPF应用程序"

4)在该对话框的底部,为您的新项目输入一个有趣但又适用的名称.

5)单击OK按钮.

6)接下来....我很无聊-您可以从这里拿走.

0) Start Visual Studio

1) Click File | New... | Project...

2) On the left side of the subsequent dialog box, click "Windows"

3) On the right side, click "WPF Application"

4) At the bottom of that dialog, enter an entertaining, yet applicable name for your new project.

5) Click the OK button.

6) Next.... ah hell, I''m bored - you can take it from here.


你好,

为丹尼尔·格伦瓦尔德("Daniel Grunwald")鼓掌,恕我直言,他对OP进行了体贴和适当的回应.

仍然,恕我直言,他以某种救赎"的幽默感回应了JSOP的第一个剑杆斜线.

我对所有(imho)讽刺和不必要的帖子#1进行了投票:这是一个技术论坛,而不是休息室!我只是出于纯粹的矛盾而对OP进行了投票.

先生们,先生们,我想问一下,使用技术论坛作为人际静态的"?

礼貌地告诉OP,问题过于广泛,以至于无法论题,无法回答或暗示,这是否更有价值(我是在用口头表达)向OP寻求有关CP的许多技术文章,这些文章涉及WPF和WinForms中的绘图,绘图表面,位图,形状等? 天真":建议您照照镜子:)

最好,比尔

Hello,

"Applause" for Daniel Grunwald, who, imho, gave a considerate and appropriate response to the OP.

Given the OP''s question was broad enough that you could see the earth''s curvature in the distance ...

Still, imho, he responded with some "redeeming" sense of humour to the first rapier slash of JSOP.

I''ve voted all the (imho) sarcastic and needless posts #1 : this is a technical forum, not the lounge! And I''ve voted up the OP just for the sake of sheer contrariness.

Gentlemen and Gentlewomen, I ask you whether it benefits CodeProject as a whole to use the technical forums as a "dumping ground" for "interpersonal static" ?

Isn''t it more valuable (I''m asking rhetorically) to just politely tell the OP that the question is so broad as to be off-topic, or unanswerable, or to suggest to OP that they do a search of the many technical articles on CP that have to with drawing, drawing surfaces, bitmaps, shapes, etc. in both WPF and WinForms ?

To those of you who wish to admire your "godliness" : I suggest you look in a mirror :)

best, Bill


这篇关于需要有关使用WPF启动栅格绘图程序的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆