Drawing3d documented Class Library

FeaturesW32.FlattenPath Method

The FlattenPath function transforms any curves in the path that is selected into the current device context (DC), turning each curve into a sequence of lines.

[Visual Basic]
<PreserveSig> _
<DllImport(EntryPoint:="FlattenPath", CharSet:=CharSet.None, SetLastError:=False, ExactSpelling:=False, PreserveSig:=True, CallingConvention:=CallingConvention.Winapi, BestFitMapping:=False, ThrowOnUnmappableChar:=False, Value:="gdi32.dll")> _
Public Shared Sub FlattenPath( _
   ByVal hDC As IntPtr _
)
[C#]
[PreserveSig]
[DllImport(EntryPoint="FlattenPath", CharSet=CharSet.None, SetLastError=False, ExactSpelling=False, PreserveSig=True, CallingConvention=CallingConvention.Winapi, BestFitMapping=False, ThrowOnUnmappableChar=False, Value="gdi32.dll")]
public static int FlattenPath(
   IntPtr hDC
);

Parameters

hDC
A handle to a DC that contains a valid path.

Return Value

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.

See Also

FeaturesW32 Class | Drawing3d.OS.Windows Namespace