关于PictureBox [英] Regarding PictureBox

查看:70
本文介绍了关于PictureBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

在Picturebox中加载图片和有什么区别
通过(导入)
1)本地资源
2)项目资源文件.

哪个更有利.
请回复


问候,
Lakshman

Hello,

What is the Difference between Loading a picture in Picturebox
Through (Importing)
1) Local Resource
2) Project Resource File.

Which is More Advantageous.
Kindly Reply


Regards,
Lakshman

推荐答案

这取决于您要实现的目标.如果您有本地资源,则需要使用应用程序重新分配位图.如果您有资源位图,则不需要,但是exe的大小会增加.
如果您打算更改位图,则将它们作为本地文件会更容易,因为您无需在每次位图更改时都重新编译应用程序.
It depends on what you are trying to achieve. If you have a local resource, then you need to redistribute the bitmap with the application. If you have a resource bitmap, then you don''t need to but the size of your exe will increase.
If you plan to change the bitmaps, it is easier to have them as local files because you don''t need to recompile your application everytime a bitmap changes.


这篇关于关于PictureBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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