Show / Hide Table of Contents

Method OsdWindow.OnPaint


Overload

Called when the OSD window must be drawn or redrawn. Derived classes should override this function and draw anything. Don't need to call base.OnPaint of OsdWindow, it does nothing.

protected virtual void OnPaint(nint dc, Graphics g, RECT r)
Parameters
dc  (nint)
g  (Graphics)
r  (RECT)

Remarks

If OsdWindow.Opacity is 0 (default), g is filled with OsdWindow.TransparentColor. Pixels of this color will be transparent. The base class draws only non-transparent areas.