iOS Question Shadow inside canvas

Semen Matusovskiy

Well-Known Member
Licensed User
Hi, guys --

Is it possible to draw the same shadow as in UIView ?
I need this for customview. The object, which I want to shadow, takes a part of panel only.
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
“If You Can Dream It, You Can Do It”. Walt Disney
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Erel --

To draw with offset is not a problem.
But, unlike MS-DOS, a shadow looks like complex combination of light/dark pixels. Meanwhile I see a possibility to use solid color only.
 
Upvote 0

Semen Matusovskiy

Well-Known Member
Licensed User
Walt Disney was right. Surprise: GetBase.SetShadow works fine in CustomView. Each "object", created by
canvas.DrawRectRounded, canvas.DrawCircle etc. has a shadow (exactly this I wanted). Meanwhile base panel is unchanged.


1.PNG
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
not for nothing that Disney has existed for 96 years
 
Upvote 0
Top