# Spout for the .NET Framework

**URL:** <https://spout.discourse.group/t/spout-for-the-net-framework/110>\
**Category:** Announcements\
**Created:** [July 24, 2020, 2:10am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110 "2020-07-24T02:10:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![spout](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@spout](https://spout.discourse.group/u/spout)\
**Post date:** [July 24, 2020, 2:10am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/1 "2020-07-24T02:10:15Z")

</div>

A new development for people developing with .NET.

[Afanyiyu](https://github.com/Afanyiyu) has ported Spout to the .NET Framework and published a GitHub repository [Spout.NET](https://github.com/Ruminoid/Spout.NET). It also provides a [Nuget package](https://www.nuget.org/packages/Spout.NET) and the Readme has a Get Started Guide with source code for a quick start.

Many thanks to Afanyiyu for sharing this project.

---

<div class="post-metadata">

**Author:** ![lilin](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lilin](https://spout.discourse.group/u/lilin)\
**Post date:** [December 2, 2022, 9:17am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/2 "2022-12-02T09:17:58Z")

</div>

This project is no longer available

---

<div class="post-metadata">

**Author:** ![spout](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@spout](https://spout.discourse.group/u/spout)\
**Post date:** [December 8, 2022, 7:37am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/3 "2022-12-08T07:37:59Z")

</div>

Thankyou @lilin  
Yes it appears that [Afanyiyu](https://github.com/Afanyiyu) does not list any repositories. But the [Spout.NET](https://github.com/Ruminoid/Spout.NET) repository still exists. It’s 2 years old now so I don’t know whether it’s maintained but it could still be of interest.

---

<div class="post-metadata">

**Author:** ![worm12](https://yyz2.discourse-cdn.com/free1/user_avatar/spout.discourse.group/worm12/32/218_2.png) [@worm12](https://spout.discourse.group/u/worm12)\
**Post date:** [May 17, 2024, 4:41am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/4 "2024-05-17T04:41:53Z")

</div>

Receiver接收器如何编码？我现在写了一个上午，找了很多网上的资料，绝少有这方面的c#代码。

```auto
uint width = 640;
uint height = 640;
byte* pixels=0;
receiver.CreateReceiver(recname, ref width, ref height, true);
receiver.ReceiveImage(recname, ref width, ref height, pixels, 0, false, 1);

```

---

<div class="post-metadata">

**Author:** ![worm12](https://yyz2.discourse-cdn.com/free1/user_avatar/spout.discourse.group/worm12/32/218_2.png) [@worm12](https://spout.discourse.group/u/worm12)\
**Post date:** [June 1, 2024, 4:45am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/5 "2024-06-01T04:45:13Z")

</div>

> [@spout](#):
>
> [Spout.NET](https://github.com/Ruminoid/Spout.NET).

Spout.NET能否给一个接收器的代码例子，我看github只有一个发送器代码例子

---

<div class="post-metadata">

**Author:** ![spout](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@spout](https://spout.discourse.group/u/spout)\
**Post date:** [June 1, 2024, 6:47am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/6 "2024-06-01T06:47:44Z")

</div>

Translation -

> Can [Spout.NET](http://Spout.NET) give a code example for a receiver? I see there is only one code example for a sender on github.

Unfortunately this project has not been updated for 4 years. However, a receiver is similar to the sender example

First loop

1. Create a receiver
2. If successful, check the width and height returned and create a buffer to receive the image.
3. If not successful, repeat until a sender is found.

Second loop

1. ReceiveImage
2. Check the width and height returned and update the receiving buffer if necessary
3. Use the buffer as required

In your example above, the last three arguments for ReceiveImage should be the same as the sender example. “Glformat” - “Gl.RGBA” and the “HostFBO” argument 0 instead of 1.

---

<div class="post-metadata">

**Author:** ![worm12](https://yyz2.discourse-cdn.com/free1/user_avatar/spout.discourse.group/worm12/32/218_2.png) [@worm12](https://spout.discourse.group/u/worm12)\
**Post date:** [September 30, 2024, 10:31am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/7 "2024-09-30T10:31:01Z")

</div>

谢谢你的技术支持，项目已经完成并且开源  
开源地址：[GitHub - worm128/yinmei-desktop: Ai吟美桌宠【c#/c++/spout2/directX】](https://github.com/worm128/yinmei-desktop)

 ![1](https://global.discourse-cdn.com/free1/uploads/spout/original/1X/ff8c9258cdd67bbd8c39e9f766ba4fa670eb147a.jpeg)

- 此项目是Ai的桌面皮肤项目
- 安装流程：[Ai吟美桌宠归来【修复1.8.1吟美桌宠exe的兼容性问题】\_哔哩哔哩\_bilibili](https://www.bilibili.com/video/BV1cvnfe2EXu/)
- 其他后端配置：[Ai吟美人工智能虚拟主播1.8.1桌宠云-Vtube Studio桌宠插件【效果展示+部署教程+下载链接】\_哔哩哔哩\_bilibili](https://www.bilibili.com/video/BV1xmvDeiE6G/)
- 相关桌宠云文档：[https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/readme-v1.8.1.pdf](https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/readme-v1.8.1.pdf)
- 相关桌宠整合包下载：[https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/yinmei-desktop.zip](https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/yinmei-desktop.zip)
- 界面呈现使用C#，可自行安装Asp.net库
- 绿布过滤使用DirectX9
- 读取流使用微软spout2共享视频流技术，利用C++开源框架进行读取[![LightjamsSpout](https://github.com/matjacques/LightjamsSpout)](https://github.com/matjacques/LightjamsSpout)

---

<div class="post-metadata">

**Author:** ![spout](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@spout](https://spout.discourse.group/u/spout)\
**Post date:** [October 1, 2024, 1:19am UTC](https://spout.discourse.group/t/spout-for-the-net-framework/110/8 "2024-10-01T01:19:07Z")

</div>

Thankyou @worm12. Here is a translation for readers  
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Thank you for your technical support. The project has been completed and open sourced. Open source address [https://github.com/worm128/yinmei-desktop](https://github.com/worm128/yinmei-desktop)

- This project is a desktop skin project of Ai
- Installation process: Ai Yinmei desktop pet returns [Fix the compatibility issue of 1.8.1 Yinmei desktop pet exe](https://www.bilibili.com/video/BV1cvnfe2EXu/)
- Other backend configurations: Ai Yinmei artificial intelligence virtual anchor 1.8.1 desktop pet cloud-Vtube Studio desktop pet plug-in [effect display + deployment tutorial](https://www.bilibili.com/video/BV1xmvDeiE6G/)
- Related desktop pet cloud documents: [https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/readme-v1.8.1.pdf](https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/readme-v1.8.1.pdf)
- Related desktop pet integration package download: [https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/yinmei-desktop.zip](https://github.com/worm128/AI-YinMei/releases/download/v1.8.1/yinmei-desktop.zip)
- The interface is presented in C#, and the [Asp.net](http://Asp.net) library can be installed by yourself  
Green cloth filtering uses DirectX9
- Reading stream uses Microsoft spout2 shared video streaming technology, and uses C++ open source framework to read [LightjamsSpout](https://github.com/matjacques/LightjamsSpout).
