Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

How to send Ventuz an image via OSC?

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
mrmacmusic
Posts: 43
Joined: 03 Apr 2013, 09:34

How to send Ventuz an image via OSC?

Post by mrmacmusic » 29 Jun 2017, 12:05

I'm new to C# programming, however have managed to create a Windows Form application using Visual Studio that sends text (and commands) to Ventuz using Ventuz.OSC.dll

Now I'd like to experiment with sending images to Ventuz, but I can't figure out how to read a PNG image and use the OscImage extension in my Windows Form application to send it... can someone please point me in the right direction here? Any help would be much appreciated!

Here's my working code for sending strings...

Code: Select all

private void sendViaOsc(string bundle, string Arg1)
        {
            Ventuz.OSC.OscBundle d = new Ventuz.OSC.OscBundle(0, new Ventuz.OSC.OscElement(bundle, new OscUnicodeString (Arg1)));
            oscManager1.Send(d);
        }
and

Code: Select all

sendViaOsc("/stringViaOSC", stringToSend);

Post Reply