Version

CreateGraphics Method

Creates the System.Drawing.Graphics object for the canvas.
Syntax
'Declaration
 
Function CreateGraphics() As Graphics
Graphics CreateGraphics()

Return Value

A System.Drawing.Graphics object that represents native graphics.
Remarks
This method requires the System.Security.Permissions.SecurityPermissionFlag.Infrastructure permission. If this permission is not available, this method will return null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also