how to create shadow effect using direct2d?

mc 4,436 Reputation points
2024-09-21T00:08:04.9933333+00:00

how to create shadow effect using direct2d to line or rectangle?

I know I can create shadow on ID2D1Image.but Can I create it on line or rectangle?

when I fill rectangle can I create its shaodow? or when I Draw Rectangle can I draw it's shadow?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,595 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,695 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.