Share via


ICanvas.SetShadow(SizeF, Single, Color) Method

Definition

Adds a shadow to a graphical object.

public:
 void SetShadow(Microsoft::Maui::Graphics::SizeF offset, float blur, Microsoft::Maui::Graphics::Color ^ color);
public void SetShadow (Microsoft.Maui.Graphics.SizeF offset, float blur, Microsoft.Maui.Graphics.Color color);
abstract member SetShadow : Microsoft.Maui.Graphics.SizeF * single * Microsoft.Maui.Graphics.Color -> unit
Public Sub SetShadow (offset As SizeF, blur As Single, color As Color)

Parameters

offset
SizeF

Represents the position of a light source that creates the shadow.

blur
Single

Amount of blur to apply to the shadow.

color
Color

Color of the shadow.

Applies to