30 lines
942 B
Markdown
30 lines
942 B
Markdown
---
|
|
page_type: sample
|
|
description: "This sample shows how to draw a circle using Direct2D."
|
|
languages:
|
|
- cpp
|
|
products:
|
|
- windows
|
|
- windows-api-win32
|
|
---
|
|
|
|
# Direct2D Circle sample
|
|
|
|
This sample shows how to draw a circle using Direct2D. For more information about the sample, see [this article](https://docs.microsoft.com/windows/win32/learnwin32/direct2d-circle-sample).
|
|
|
|
## Requirements
|
|
|
|
* Client: Windows 8.x or later
|
|
* Server: Windows Server 2016 or later
|
|
* Visual Studio 2019
|
|
|
|
## Build the sample
|
|
|
|
1. Start Visual Studio and select **File** \> **Open** \> **Project/Solution**.
|
|
2. Go to the directory named for the sample, and double-click the solution (.sln) file.
|
|
3. Press F7 or use **Build** /> **Build Solution** to build the sample.
|
|
|
|
## Run the sample
|
|
|
|
To debug the app and then run it, press F5 or use **Debug** \> **Start Debugging**. To run the app without debugging, press Ctrl+F5 or use **Debug** \> **Start Without Debugging**.
|