VisioForge (c) 2025

Search Results for

    Class PeakMeterCtrl

    Peakmeter control.

    Inheritance
    object
    MarshalByRefObject
    Component
    Control
    PeakMeterCtrl
    Implements
    IDropTarget
    ISynchronizeInvoke
    IWin32Window
    IBindableComponent
    IComponent
    IDisposable
    Inherited Members
    Control.GetAccessibilityObjectById(int)
    Control.SetAutoSizeMode(AutoSizeMode)
    Control.GetAutoSizeMode()
    Control.GetPreferredSize(Size)
    Control.AccessibilityNotifyClients(AccessibleEvents, int)
    Control.AccessibilityNotifyClients(AccessibleEvents, int, int)
    Control.BeginInvoke(Delegate)
    Control.BeginInvoke(Action)
    Control.BeginInvoke(Delegate, params object[])
    Control.BringToFront()
    Control.Contains(Control)
    Control.CreateAccessibilityInstance()
    Control.CreateControlsInstance()
    Control.CreateGraphics()
    Control.CreateHandle()
    Control.CreateControl()
    Control.DefWndProc(ref Message)
    Control.DestroyHandle()
    Control.DoDragDrop(object, DragDropEffects)
    Control.DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)
    Control.DrawToBitmap(Bitmap, Rectangle)
    Control.EndInvoke(IAsyncResult)
    Control.FindForm()
    Control.GetTopLevel()
    Control.RaiseKeyEvent(object, KeyEventArgs)
    Control.RaiseMouseEvent(object, MouseEventArgs)
    Control.Focus()
    Control.FromChildHandle(nint)
    Control.FromHandle(nint)
    Control.GetChildAtPoint(Point, GetChildAtPointSkip)
    Control.GetChildAtPoint(Point)
    Control.GetContainerControl()
    Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
    Control.GetNextControl(Control, bool)
    Control.GetStyle(ControlStyles)
    Control.Hide()
    Control.InitLayout()
    Control.Invalidate(Region)
    Control.Invalidate(Region, bool)
    Control.Invalidate()
    Control.Invalidate(bool)
    Control.Invalidate(Rectangle)
    Control.Invalidate(Rectangle, bool)
    Control.Invoke(Action)
    Control.Invoke(Delegate)
    Control.Invoke(Delegate, params object[])
    Control.Invoke<T>(Func<T>)
    Control.InvokePaint(Control, PaintEventArgs)
    Control.InvokePaintBackground(Control, PaintEventArgs)
    Control.IsKeyLocked(Keys)
    Control.IsInputChar(char)
    Control.IsInputKey(Keys)
    Control.IsMnemonic(char, string)
    Control.LogicalToDeviceUnits(int)
    Control.LogicalToDeviceUnits(Size)
    Control.ScaleBitmapLogicalToDevice(ref Bitmap)
    Control.NotifyInvalidate(Rectangle)
    Control.InvokeOnClick(Control, EventArgs)
    Control.OnAutoSizeChanged(EventArgs)
    Control.OnBackgroundImageChanged(EventArgs)
    Control.OnBackgroundImageLayoutChanged(EventArgs)
    Control.OnBindingContextChanged(EventArgs)
    Control.OnCausesValidationChanged(EventArgs)
    Control.OnContextMenuStripChanged(EventArgs)
    Control.OnCursorChanged(EventArgs)
    Control.OnDataContextChanged(EventArgs)
    Control.OnDockChanged(EventArgs)
    Control.OnEnabledChanged(EventArgs)
    Control.OnFontChanged(EventArgs)
    Control.OnForeColorChanged(EventArgs)
    Control.OnRightToLeftChanged(EventArgs)
    Control.OnNotifyMessage(Message)
    Control.OnParentBackColorChanged(EventArgs)
    Control.OnParentBackgroundImageChanged(EventArgs)
    Control.OnParentBindingContextChanged(EventArgs)
    Control.OnParentCursorChanged(EventArgs)
    Control.OnParentDataContextChanged(EventArgs)
    Control.OnParentEnabledChanged(EventArgs)
    Control.OnParentFontChanged(EventArgs)
    Control.OnParentForeColorChanged(EventArgs)
    Control.OnParentRightToLeftChanged(EventArgs)
    Control.OnParentVisibleChanged(EventArgs)
    Control.OnPrint(PaintEventArgs)
    Control.OnTabIndexChanged(EventArgs)
    Control.OnTabStopChanged(EventArgs)
    Control.OnTextChanged(EventArgs)
    Control.OnVisibleChanged(EventArgs)
    Control.OnParentChanged(EventArgs)
    Control.OnClick(EventArgs)
    Control.OnClientSizeChanged(EventArgs)
    Control.OnControlAdded(ControlEventArgs)
    Control.OnControlRemoved(ControlEventArgs)
    Control.OnCreateControl()
    Control.OnHandleCreated(EventArgs)
    Control.OnLocationChanged(EventArgs)
    Control.OnDoubleClick(EventArgs)
    Control.OnDragEnter(DragEventArgs)
    Control.OnDragOver(DragEventArgs)
    Control.OnDragLeave(EventArgs)
    Control.OnDragDrop(DragEventArgs)
    Control.OnGiveFeedback(GiveFeedbackEventArgs)
    Control.OnEnter(EventArgs)
    Control.InvokeGotFocus(Control, EventArgs)
    Control.OnGotFocus(EventArgs)
    Control.OnHelpRequested(HelpEventArgs)
    Control.OnInvalidated(InvalidateEventArgs)
    Control.OnKeyDown(KeyEventArgs)
    Control.OnKeyPress(KeyPressEventArgs)
    Control.OnKeyUp(KeyEventArgs)
    Control.OnLayout(LayoutEventArgs)
    Control.OnLeave(EventArgs)
    Control.InvokeLostFocus(Control, EventArgs)
    Control.OnLostFocus(EventArgs)
    Control.OnMarginChanged(EventArgs)
    Control.OnMouseDoubleClick(MouseEventArgs)
    Control.OnMouseClick(MouseEventArgs)
    Control.OnMouseCaptureChanged(EventArgs)
    Control.OnMouseDown(MouseEventArgs)
    Control.OnMouseEnter(EventArgs)
    Control.OnMouseLeave(EventArgs)
    Control.OnDpiChangedBeforeParent(EventArgs)
    Control.OnDpiChangedAfterParent(EventArgs)
    Control.OnMouseHover(EventArgs)
    Control.OnMouseMove(MouseEventArgs)
    Control.OnMouseUp(MouseEventArgs)
    Control.OnMouseWheel(MouseEventArgs)
    Control.OnMove(EventArgs)
    Control.OnPaddingChanged(EventArgs)
    Control.OnPaintBackground(PaintEventArgs)
    Control.OnQueryContinueDrag(QueryContinueDragEventArgs)
    Control.OnRegionChanged(EventArgs)
    Control.OnResize(EventArgs)
    Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)
    Control.OnSizeChanged(EventArgs)
    Control.OnChangeUICues(UICuesEventArgs)
    Control.OnStyleChanged(EventArgs)
    Control.OnSystemColorsChanged(EventArgs)
    Control.OnValidating(CancelEventArgs)
    Control.OnValidated(EventArgs)
    Control.RescaleConstantsForDpi(int, int)
    Control.PerformLayout()
    Control.PerformLayout(Control, string)
    Control.PointToClient(Point)
    Control.PointToScreen(Point)
    Control.PreProcessMessage(ref Message)
    Control.PreProcessControlMessage(ref Message)
    Control.ProcessCmdKey(ref Message, Keys)
    Control.ProcessDialogChar(char)
    Control.ProcessDialogKey(Keys)
    Control.ProcessKeyEventArgs(ref Message)
    Control.ProcessKeyMessage(ref Message)
    Control.ProcessKeyPreview(ref Message)
    Control.ProcessMnemonic(char)
    Control.RaiseDragEvent(object, DragEventArgs)
    Control.RaisePaintEvent(object, PaintEventArgs)
    Control.RecreateHandle()
    Control.RectangleToClient(Rectangle)
    Control.RectangleToScreen(Rectangle)
    Control.ReflectMessage(nint, ref Message)
    Control.Refresh()
    Control.ResetMouseEventArgs()
    Control.ResetText()
    Control.ResumeLayout()
    Control.ResumeLayout(bool)
    Control.Scale(SizeF)
    Control.ScaleControl(SizeF, BoundsSpecified)
    Control.Select()
    Control.Select(bool, bool)
    Control.SelectNextControl(Control, bool, bool, bool, bool)
    Control.SendToBack()
    Control.SetBounds(int, int, int, int)
    Control.SetBounds(int, int, int, int, BoundsSpecified)
    Control.SetBoundsCore(int, int, int, int, BoundsSpecified)
    Control.SetClientSizeCore(int, int)
    Control.SizeFromClientSize(Size)
    Control.SetStyle(ControlStyles, bool)
    Control.SetTopLevel(bool)
    Control.SetVisibleCore(bool)
    Control.RtlTranslateAlignment(HorizontalAlignment)
    Control.RtlTranslateAlignment(LeftRightAlignment)
    Control.RtlTranslateAlignment(ContentAlignment)
    Control.RtlTranslateHorizontal(HorizontalAlignment)
    Control.RtlTranslateLeftRight(LeftRightAlignment)
    Control.RtlTranslateContent(ContentAlignment)
    Control.Show()
    Control.SuspendLayout()
    Control.Update()
    Control.UpdateBounds()
    Control.UpdateBounds(int, int, int, int)
    Control.UpdateBounds(int, int, int, int, int, int)
    Control.UpdateZOrder()
    Control.UpdateStyles()
    Control.WndProc(ref Message)
    Control.OnImeModeChanged(EventArgs)
    Control.AccessibilityObject
    Control.AccessibleDefaultActionDescription
    Control.AccessibleDescription
    Control.AccessibleName
    Control.AccessibleRole
    Control.AllowDrop
    Control.Anchor
    Control.AutoScrollOffset
    Control.LayoutEngine
    Control.DataContext
    Control.BackColor
    Control.BackgroundImage
    Control.BackgroundImageLayout
    Control.BindingContext
    Control.Bottom
    Control.Bounds
    Control.CanFocus
    Control.CanRaiseEvents
    Control.CanSelect
    Control.Capture
    Control.CausesValidation
    Control.CheckForIllegalCrossThreadCalls
    Control.ClientRectangle
    Control.ClientSize
    Control.CompanyName
    Control.ContainsFocus
    Control.ContextMenuStrip
    Control.Controls
    Control.Created
    Control.CreateParams
    Control.Cursor
    Control.DataBindings
    Control.DefaultBackColor
    Control.DefaultCursor
    Control.DefaultFont
    Control.DefaultForeColor
    Control.DefaultMargin
    Control.DefaultMaximumSize
    Control.DefaultMinimumSize
    Control.DefaultPadding
    Control.DefaultSize
    Control.DeviceDpi
    Control.DisplayRectangle
    Control.IsDisposed
    Control.Disposing
    Control.Dock
    Control.DoubleBuffered
    Control.Enabled
    Control.Focused
    Control.Font
    Control.FontHeight
    Control.ForeColor
    Control.Handle
    Control.HasChildren
    Control.Height
    Control.IsHandleCreated
    Control.InvokeRequired
    Control.IsAccessible
    Control.IsAncestorSiteInDesignMode
    Control.IsMirrored
    Control.Left
    Control.Location
    Control.Margin
    Control.MaximumSize
    Control.MinimumSize
    Control.ModifierKeys
    Control.MouseButtons
    Control.MousePosition
    Control.Name
    Control.Parent
    Control.ProductName
    Control.ProductVersion
    Control.RecreatingHandle
    Control.Region
    Control.RenderRightToLeft
    Control.ResizeRedraw
    Control.Right
    Control.RightToLeft
    Control.ScaleChildren
    Control.Site
    Control.Size
    Control.TabIndex
    Control.TabStop
    Control.Tag
    Control.Text
    Control.Top
    Control.TopLevelControl
    Control.ShowKeyboardCues
    Control.ShowFocusCues
    Control.UseWaitCursor
    Control.Visible
    Control.Width
    Control.PreferredSize
    Control.Padding
    Control.CanEnableIme
    Control.DefaultImeMode
    Control.ImeMode
    Control.ImeModeBase
    Control.PropagatingImeMode
    Control.BackColorChanged
    Control.BackgroundImageChanged
    Control.BackgroundImageLayoutChanged
    Control.BindingContextChanged
    Control.CausesValidationChanged
    Control.ClientSizeChanged
    Control.ContextMenuStripChanged
    Control.CursorChanged
    Control.DockChanged
    Control.EnabledChanged
    Control.FontChanged
    Control.ForeColorChanged
    Control.LocationChanged
    Control.MarginChanged
    Control.RegionChanged
    Control.RightToLeftChanged
    Control.SizeChanged
    Control.TabIndexChanged
    Control.TabStopChanged
    Control.TextChanged
    Control.VisibleChanged
    Control.Click
    Control.ControlAdded
    Control.ControlRemoved
    Control.DataContextChanged
    Control.DragDrop
    Control.DragEnter
    Control.DragOver
    Control.DragLeave
    Control.GiveFeedback
    Control.HandleCreated
    Control.HandleDestroyed
    Control.HelpRequested
    Control.Invalidated
    Control.PaddingChanged
    Control.Paint
    Control.QueryContinueDrag
    Control.QueryAccessibilityHelp
    Control.DoubleClick
    Control.Enter
    Control.GotFocus
    Control.KeyDown
    Control.KeyPress
    Control.KeyUp
    Control.Layout
    Control.Leave
    Control.LostFocus
    Control.MouseClick
    Control.MouseDoubleClick
    Control.MouseCaptureChanged
    Control.MouseDown
    Control.MouseEnter
    Control.MouseLeave
    Control.DpiChangedBeforeParent
    Control.DpiChangedAfterParent
    Control.MouseHover
    Control.MouseMove
    Control.MouseUp
    Control.MouseWheel
    Control.Move
    Control.PreviewKeyDown
    Control.Resize
    Control.ChangeUICues
    Control.StyleChanged
    Control.SystemColorsChanged
    Control.Validating
    Control.Validated
    Control.ParentChanged
    Control.ImeModeChanged
    Component.Dispose()
    Component.GetService(Type)
    Component.ToString()
    Component.Container
    Component.DesignMode
    Component.Events
    Component.Disposed
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: VisioForge.Core.UI.WinForms
    Assembly: VisioForge.Core.dll
    Syntax
    [ToolboxBitmap(typeof(MyResourceNamespace), "PeakMeterCtrl.pmicon.bmp")]
    public class PeakMeterCtrl : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

    Constructors

    PeakMeterCtrl()

    Initializes a new instance of the PeakMeterCtrl class.

    Declaration
    public PeakMeterCtrl()

    Properties

    BandsCount

    Gets or sets bands count.

    Declaration
    public int BandsCount { get; set; }
    Property Value
    Type Description
    int

    ColorHigh

    Gets or sets high color.

    Declaration
    public Color ColorHigh { get; set; }
    Property Value
    Type Description
    Color

    ColorHighBack

    Gets or sets high back color.

    Declaration
    public Color ColorHighBack { get; set; }
    Property Value
    Type Description
    Color

    ColorMedium

    Gets or sets medium color.

    Declaration
    public Color ColorMedium { get; set; }
    Property Value
    Type Description
    Color

    ColorMediumBack

    Gets or sets medium back color.

    Declaration
    public Color ColorMediumBack { get; set; }
    Property Value
    Type Description
    Color

    ColorNormal

    Gets or sets normal color.

    Declaration
    public Color ColorNormal { get; set; }
    Property Value
    Type Description
    Color

    ColorNormalBack

    Gets or sets normal back color.

    Declaration
    public Color ColorNormalBack { get; set; }
    Property Value
    Type Description
    Color

    ColoredGrid

    Gets or sets a value indicating whether grid is colored.

    Declaration
    public bool ColoredGrid { get; set; }
    Property Value
    Type Description
    bool

    FalloffColor

    Gets or sets falloff color.

    Declaration
    public Color FalloffColor { get; set; }
    Property Value
    Type Description
    Color

    FalloffEffect

    Gets or sets a value indicating whether falloff effect is enabled.

    Declaration
    public bool FalloffEffect { get; set; }
    Property Value
    Type Description
    bool

    FalloffSpeed

    Gets or sets falloff speed.

    Declaration
    public int FalloffSpeed { get; set; }
    Property Value
    Type Description
    int

    GridColor

    Gets or sets grid color.

    Declaration
    public Color GridColor { get; set; }
    Property Value
    Type Description
    Color

    IsActive

    Gets a value indicating whether peakmeter is active.

    Declaration
    [Browsable(false)]
    public bool IsActive { get; }
    Property Value
    Type Description
    bool

    LEDCount

    Gets or sets LED count.

    Declaration
    public int LEDCount { get; set; }
    Property Value
    Type Description
    int

    MeterStyle

    Gets or sets meter style.

    Declaration
    public PeakMeterStyle MeterStyle { get; set; }
    Property Value
    Type Description
    PeakMeterStyle

    ShowGrid

    Gets or sets a value indicating whether grid is enabled.

    Declaration
    public bool ShowGrid { get; set; }
    Property Value
    Type Description
    bool

    Methods

    Clear()

    Clears values.

    Declaration
    public void Clear()

    DarkenColor(Color, byte)

    Make a color darker.

    Declaration
    protected virtual Color DarkenColor(Color color, byte darkenBy)
    Parameters
    Type Name Description
    Color color

    Color to darken.

    byte darkenBy

    Value to decrease by.

    Returns
    Type Description
    Color

    Returns Color.

    Dispose(bool)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true if managed resources should be disposed; otherwise, false.

    Overrides
    Control.Dispose(bool)

    DrawHorzBand(Graphics, Rectangle)

    Draws horizon bands.

    Declaration
    protected void DrawHorzBand(Graphics g, Rectangle rect)
    Parameters
    Type Name Description
    Graphics g

    Graphics.

    Rectangle rect

    Rectangle.

    DrawVertBand(Graphics, Rectangle)

    Draws vertical band.

    Declaration
    protected void DrawVertBand(Graphics g, Rectangle rect)
    Parameters
    Type Name Description
    Graphics g

    Graphics.

    Rectangle rect

    Rectangle.

    InRange(int, int, int)

    Checks is in range.

    Declaration
    protected static bool InRange(int value, int rangeMin, int rangeMax)
    Parameters
    Type Name Description
    int value

    Value.

    int rangeMin

    Min range.

    int rangeMax

    Max range.

    Returns
    Type Description
    bool

    Returns bool.

    LightenColor(Color, byte)

    Make a color lighter.

    Declaration
    protected virtual Color LightenColor(Color color, byte lightenBy)
    Parameters
    Type Name Description
    Color color

    Color.

    byte lightenBy

    Lighten by.

    Returns
    Type Description
    Color

    Returns Color.

    OnBackColorChanged(EventArgs)

    On backcolor changed event.

    Declaration
    protected override void OnBackColorChanged(EventArgs e)
    Parameters
    Type Name Description
    EventArgs e

    Event args.

    Overrides
    Control.OnBackColorChanged(EventArgs)

    OnHandleDestroyed(EventArgs)

    On handle destroyed event.

    Declaration
    protected override void OnHandleDestroyed(EventArgs e)
    Parameters
    Type Name Description
    EventArgs e

    Event args.

    Overrides
    Control.OnHandleDestroyed(EventArgs)

    OnPaint(PaintEventArgs)

    On paint event.

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    PaintEventArgs e

    Event args.

    Overrides
    Control.OnPaint(PaintEventArgs)

    ResetControl()

    Resets control.

    Declaration
    protected void ResetControl()

    SetData(int[], int, int)

    Set meter band value.

    Declaration
    public bool SetData(int[] arrayValue, int offset, int size)
    Parameters
    Type Name Description
    int[] arrayValue

    Array value for the bands.

    int offset

    Starting offset position.

    int size

    Number of values to set.

    Returns
    Type Description
    bool

    Returns bool.

    SetMeterBands(int, int)

    Set number of LED bands.

    Declaration
    public void SetMeterBands(int bandsCount, int ledCount)
    Parameters
    Type Name Description
    int bandsCount

    Number of bands.

    int ledCount

    Number of LED per bands.

    SetRange(int, int, int)

    Set range info.

    Declaration
    public void SetRange(int minRangeVal, int medRangeVal, int maxRangeVal)
    Parameters
    Type Name Description
    int minRangeVal

    Min Range.

    int medRangeVal

    Medium Range.

    int maxRangeVal

    High Range.

    Start(int)

    Start animation.

    Declaration
    public bool Start(int delay)
    Parameters
    Type Name Description
    int delay

    Delay.

    Returns
    Type Description
    bool

    Returns bool.

    StartAnimation(int)

    Starts animation.

    Declaration
    protected bool StartAnimation(int period)
    Parameters
    Type Name Description
    int period

    Period.

    Returns
    Type Description
    bool

    Returns bool.

    Stop()

    Stop animation.

    Declaration
    public bool Stop()
    Returns
    Type Description
    bool

    Returns bool.

    StopAnimation()

    Stops animation.

    Declaration
    protected bool StopAnimation()
    Returns
    Type Description
    bool

    Returns bool.

    TimerCallback(object)

    Timer callback.

    Declaration
    protected void TimerCallback(object thisObject)
    Parameters
    Type Name Description
    object thisObject

    Self.

    Implements

    IDropTarget
    ISynchronizeInvoke
    IWin32Window
    IBindableComponent
    IComponent
    IDisposable