Skip to main content

GraphicsUnit

Namespace: System.Drawing

Assembly: System.Drawing.Managed (4.0.0.0)

Specifies the unit of measure for the given data.

public enum GraphicsUnit : Enum

Fields​

NameDescription
DisplaySpecifies the unit of measure of the display device. Typically pixels for video displays, and 1/100 inch for printers.
DocumentSpecifies the document unit (1/300 inch) as the unit of measure.
InchSpecifies the inch as the unit of measure.
MillimeterSpecifies the millimeter as the unit of measure.
PixelSpecifies a device pixel as the unit of measure.
PointSpecifies a printer's point (1/72 inch) as the unit of measure.
WorldSpecifies the world coordinate system unit as the unit of measure.

Used By​

NameDescription
Font.UnitGets the unit of measure for this Font.
Graphics.PageUnitGets or sets the unit of measure used for page coordinates in this Graphics.
Graphics.BeginContainerSaves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
Graphics.DrawImageDraws a portion of an image at a specified location.