人民班级将如何包含形象 [英] How would a people class include an image

查看:51
本文介绍了人民班级将如何包含形象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么,有几个例子说明了您的专业人士如何将图像作为仅一个类字段放置在一个类中.因为我只能想到图片
字段作为字符串,它是图像的路径.因此,请开阔我的视野,好吗?

So How about a couple examples of how sme of you pros would put an image inside a class as just 1 of the class fields . Because I could only think of the image
field as a string that is the path to the image. So expand my mind OK ?

推荐答案

我几乎无法理解图像的特殊之处.

为什么您认为可以使用该类的string成员,而不能使用图像本身?刮掉字符串",并用"System.Windows.Media.ImageSource"或"System.Windows.Media.Imaging.BitmapSource"替换,按原样使用.怎么了?

—SA
I can hardly understand what so special about image.

Why you think you can use string member of the class and cannot use an image itself? Scratch out "string" and replace is with "System.Windows.Media.ImageSource" or "System.Windows.Media.Imaging.BitmapSource", work with it as such. What''s wrong with that?

—SA


这篇关于人民班级将如何包含形象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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