GraphicsContainer.GetPreferredPixelFormat Method

Gets the PixelFormat that is most often used in this container.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public PixelFormat GetPreferredPixelFormat()

Return Value

A PixelFormat object corresponding to the most often used in this container.

Remarks

For an empty container GetPreferredPixelFormat() returns FormatUnknown because there is no any element that can define the pixel format.

See Also

Reference