Show / Hide Table of Contents

Method wnd.GetTransparency


Overload

Gets window transparency attributes (opacity and transparency color).

public bool GetTransparency(out int? opacity, out ColorInt? colorKey)
Parameters
opacity  (int?)

If this function returns true and the window has an opacity attribute, receives the opacity value 0-255, else null.

colorKey  (ColorInt?)

If this function returns true and the window has a transparency color attribute, receives the color, else null.

Returns
bool

True if the window has transparency attributes set with wnd.SetTransparency or API SetLayeredWindowAttributes. Supports lastError.

Remarks

Uses API GetLayeredWindowAttributes.