在Windows窗体中有效使用图像和图形 [英] Using Images and Graphics Efficiently in Windows Forms

查看:68
本文介绍了在Windows窗体中有效使用图像和图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很快,我最近为Windows手机和掌上电脑创建了一个项目,想知道如何使我的图像使用效率更高,因为我知道这些设备并不是最有效的世界上功能强大的机器.

我有一系列的tablelayoutpanels来保持表单的结构,但是我徘徊在固定大小的面板中的单元格之外,这些单元格包含以该分辨率创建的图像.

处理表单中需要调整大小的部分的最佳方法是什么?例如,沿表单顶部延伸的水平工具栏的背景图像,在水平调整表单大小时需要调整其大小.

也许我的方向完全错误,如果可能的话,我应该使用渐变图形,并且仅在必要时使用图形.我一直在文档中阅读有关缩放和使用渐变的信息,但只想对此发表一些意见.

在此先谢谢您.处理表单中需要调整大小的部分?



AFAIK Windows移动应用程序无法调整大小,它们在设备上为全屏显示,因此这不是问题.


Just a quick one, I''ve recently created a project for a windows mobile phone and pocket pc and wanted to know how I could make the use of my images more efficient as I know these devices aren''t the most powerful machines in the world.

I have a series tablelayoutpanels to keep the structure of my forms, however I was wandering aside from the cells in the panels with fixed sizes, that contain images that are created at that resolution.

What is the best way to deal with parts of the form that will need to be resized? For example a background image to a horizontal tool bar running along the top of a form, this will need to be resized as the form is resized horizontally.

Perhaps I''m going in completely the wrong direction and I should be using gradient graphics if possible and only use graphics where necessary. I''ve been reading about scaling and using gradients in the documentation but just wanted some opinions on this.

Thanks in advance.

解决方案

SeniorCrispy wrote:

What is the best way to deal with parts of the form that will need to be resized?



AFAIK Windows mobile apps can''t be resized, they are full screen for the device, so this isn''t an issue.


这篇关于在Windows窗体中有效使用图像和图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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