Copyright © 2005-2008 MultiMedia Soft 
Return to Table of contents  
 
Oscilloscope class 
 
The Oscilloscope class, accessible through the control's DisplayOscilloscope property, contains information needed to render the embedded Oscilloscope visual feedback
 
It can be used at Run-time in order to create the embedded Oscilloscope and to change its graphic settings. For details about using Visual Feedbacks refer to the How to use the embedded Visual Feedbacks section 
 
The Oscilloscope class is implemented through the following methods and properties: 
 
Methods 
 
  • Create 
  • Show 
  • SetHwnd 
  • SetBackPictureFromFile 
  • SetBackPictureFromHandle 
  •  
    Properties 
     
  • LineWidth 
  • ColorLine 
  • ColorBackground 
  • Type 
  • ZoomPerc 
  •  
    The following code snippets show how to create and change this object in your code. These examples assume that you have placed a control named audioDjStudio1 on a form or dialog and that you want to change a couple of graphic settings (Line and Background colors). 
     
    Visual Basic.NET 
     
    Here follows the code needed to perform the requested operations 
     
    ' create the Oscilloscope on player 0 over an existing control 
    AudioDjStudio1.DisplayOscilloscope.Create(0, PictureBox1.Handle) 
     
    ' set the blue color for Oscilloscope line of player 0 
    AudioDjStudio1.DisplayOscilloscope.set_ColorLine(0, Color.Blue) 
     
    ' set the white color for Oscilloscope background of player 0 
    AudioDjStudio1.DisplayOscilloscope.set_ColorBackground(0, Color.White) 
     
    Visual C#.NET 
     
    Here follows the code needed to perform the requested operations 
    // create the Oscilloscope on player 0 over an 
    existing control 
    audioDjStudio1.DisplayOscilloscope.Create(0, pictureBox1.Handle); 
     
    // set the blue color for Oscilloscope line of player 0 
    audioDjStudio1.DisplayOscilloscope.set_ColorLine (0, Color.Blue); 
     
    // set the white color for Oscilloscope background of player 0 
    audioDjStudio1.DisplayOscilloscope.set_ColorBackground(0, Color.White); 
     
     
     
     
     
     
     
     
     
     
     
    Copyright © 2005-2008 MultiMedia Soft 
    Return to Table of contents