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