小编Maf*_*oze的帖子

C#如何制作简单的UDP服务器

我可以使用UdpClient类创建UDP服务器和客户端吗?我需要从服务器向所有客户端发送图像.有些人可以给我看一个代码示例.我是新手.

c# sockets udp

14
推荐指数
1
解决办法
6万
查看次数

C++ MFC如何绘制Alpha透明矩形

在C++ MFC应用程序中.使用dc 的(CPaintDC dc(this);)

如何绘制一个矩形(LPRECT),其中包含我可以调整的Alpha透明度.

以下是我需要转换为C++的示例c#代码

private void pictureBox1_Paint(object sender, PaintEventArgs e)  
{
    Graphics g = e.Graphics;
    Color color = Color.FromArgb(75,Color.Red); //sets color Red with 75% alpha transparency

    Rectangle rectangle = new Rectangle(100,100,400,400);
    g.FillRectangle(new SolidBrush(color), rectangle); //draws the rectangle with the color set.
} 
Run Code Online (Sandbox Code Playgroud)

c++ mfc paint

6
推荐指数
1
解决办法
1万
查看次数

C#更好的压缩远程桌面广播应用程序

我正在创建TCP远程桌面广播应用程序.(服务器应用程序会像Team Viewer或VNC那样)

1. run on a PC listening for multiple clients on one Thread
2. and on another thread it will record the desktop every second
3. and it will broadcast the desktop for each connected client.
Run Code Online (Sandbox Code Playgroud)

我需要使这个应用程序可以在12KBps上传和50KBps下载DSL连接(客户端和服务器)的连接上运行.

所以..我必须减少每秒发送的数据/图像的大小.

我尝试通过以下方式减少.

I. first i send a Bitmap frame of the desktop and each other time i send only the difference of the previously sent frame.

II. the second way i tried was, each time i send a JPEG frame. …
Run Code Online (Sandbox Code Playgroud)

c# compression mpeg remote-desktop video-streaming

3
推荐指数
1
解决办法
6452
查看次数

使用GNUMP如何找到base10的对数

我在C++中遇到了问题.我需要一个比标准c ++ double更精确的double.(C++ long double甚至还不够)所以..我发现GNUMP确实让我满意..但..

我如何找到给定数字的基数10的对数..

c++ double gmp bignum

2
推荐指数
1
解决办法
878
查看次数

标签 统计

c# ×2

c++ ×2

bignum ×1

compression ×1

double ×1

gmp ×1

mfc ×1

mpeg ×1

paint ×1

remote-desktop ×1

sockets ×1

udp ×1

video-streaming ×1