csImb.csImb.SendImage C# (CSharp) Метод

SendImage() публичный Метод

public SendImage ( ImbClientStatus client, System.Windows.Media.Imaging.BitmapSource image ) : void
client ImbClientStatus
image System.Windows.Media.Imaging.BitmapSource
Результат void
        public void SendImage(ImbClientStatus client, BitmapSource image)
        {
            if (image == null || client == null) return;
            var imgEncoder = new PngBitmapEncoder();
            imgEncoder.Frames.Add(BitmapFrame.Create(image));
            MemoryStream ms = new MemoryStream();
            imgEncoder.Save(ms);
            client.Media.SignalBuffer(0, ms.GetBuffer());      

        }

Same methods

csImb::SendImage ( ImbClientStatus client, string file ) : void
csImb::SendImage ( int screenId, string file ) : void