Graphics.Flush Method

Definition

Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.

Overloads

Flush()

Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.

Flush(FlushIntention)

Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.

Flush()

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.

C#
public void Flush();

Remarks

This method starts a flush and returns immediately without waiting for any currently executing graphics operation to finish.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

Flush(FlushIntention)

Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs
Source:
Graphics.cs

Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.

C#
public void Flush(System.Drawing.Drawing2D.FlushIntention intention);

Parameters

intention
FlushIntention

Member of the FlushIntention enumeration that specifies whether the method returns immediately or waits for any existing operations to finish.

Remarks

A value of Flush for the intention parameter specifies that the method return immediately after beginning the flush, while a value of Sync specifies that the method wait before returning until any existing operations finish.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10