Show / Hide Table of Contents

Method osdText.showImage


Overload

Shows on-screen image.

public static osdText showImage(Image image, int secondsTimeout = 0, PopupXY xy = null, string name = null, OsdMode showMode = OsdMode.Auto, bool dontShow = false)
Parameters
image  (Image)

Sets osdText.BackgroundImage.

secondsTimeout  (int)

Close the OSD window after this time, seconds. If 0 (default), depends on text length. Can be System.Threading.Timeout.Infinite (-1). Sets osdText.SecondsTimeout.

xy  (PopupXY)

Coordinates. Default: null (screen center). Sets osdText.XY.

name  (string)

OSD window name.
Sets OsdWindow.Name.

showMode  (OsdMode)

Sets osdText.ShowMode.

dontShow  (bool)

Don't call osdText.Show. The caller can use the return value to set some other properties and call Show.

Returns
osdText

Returns an osdText object that can be used to change properties or close the OSD window.

Remarks

Also sets these properties: osdText.IsOfImageSize=true, OsdWindow.Opacity=0, osdText.ClickToClose=true.