将高分辨率像素转换为低分辨率像素 [英] Convert High resolution pixels to Low resolution pixels

查看:423
本文介绍了将高分辨率像素转换为低分辨率像素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

老年人,
我正在尝试使用C语言在Linux上学习套接字编程.但是在两者之间,我有一个查询,如果可能的话,您可以指导我.

问题:我想将表单(基本上有供用户输入的字段)从服务器传输到客户端程序.现在,在客户端程序中,由于表单的gui在输入详细信息中并没有真正起重要作用,因此我只想将整个表单显示为黑色背景,表明只需要将字段输入为白色或突出显示所需的字段即可.只能使用字段,并使用其他颜色的文本,而不是模拟服务器中原始表单的整个GUI.

因此,在这方面,我有办法将高分辨率像素减少为低分辨率像素等吗?

能否请您提出一种实现上述方法的方法,以使从Server到Client的表单传输性能更高.

问候,

解决方案

如果您的客户端程序具有http解析和渲染功能,为什么不将表单公开为网页?

如果您喜欢自己动手的解决方案,请让服务器提供某种形式的表单描述(基于xml或原始数据),并让客户端通过本地GUI功能(如果有)呈现表单.

或使用纯文本模式:)在过去,您可以通过所谓的ANSI Escape Sequences监视控制台上的文本字段和光标移动.

实际上,您在上下文中提供的信息很少,因此无法给出严肃的建议.


为什么不发送相关的GUI而不是降低像素分辨率"?数据(例如表单的位置和尺寸等),并通过此类信息在客户端重建低分辨率表单"(或者,更好的是使用已经建议的HTML)?

Hi Seniors,
I am trying to learn socket programming on linux in C. But in between I have a query which you can guide me if possible.

Problem: I want to transfer a form ( which basically have fields for the user to enter into ) from a server to the client program. Now, in the client program since the gui of the form do not really play vital role in entering the details, I want to just simply display the entire form as a black background indicating only the fields need to be entered in white or highlighting the required fields only and the text with some other colors instead of simulating the entire gui of the original form in the server.

So in this regards, is there a way that i can do by reducing the High resolution pixels to low resolution pixels etc.,

Can you please suggest a method of implementing the above so that the performance can be more in transmitting the form from Server to Client.

Regards,

解决方案

If your client program has http parsing and rendering capability, why not exposing your form as a web page ?

If you prefer a do-it-yourself solution, let the server provide some kind of form description (xml based or raw data), and let the client render the form by means of the local GUI capabilities, if any.

Or use plain text mode :) In the old days, you could monitor text fields and cursor movements on a console by means of the so called ANSI Escape Sequences.

In fact, you are providing so little information on the context that no serious advice can be given.


Instead of ''reducing pixel resolution'' why don''t you send the relevant GUI data (e.g. form position and dimensions, etc...) and, with such a info, rebuild the ''low resolution form'' on the client side (or, better, use HTML as already suggested)?


这篇关于将高分辨率像素转换为低分辨率像素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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