This documentation is for the old version. Go to the latest Graphics Mill docs

Common Methods

The Common type exposes the following members.

Methods

Name Description
Public method Static member ConvertPixelsToPoints

Converts a specified value in pixels to points using the specified dpi.

Public method Static member ConvertPointsToPixels

Converts a specified value in points to pixels using the specified dpi.

Public method Static member ConvertToCmyk

Converts the bitmap to CMYK color space using the specified color profiles.

Public method Static member ConvertToRgb

Converts the bitmap to RGB color space using the specified color profiles.

Public method Static member ConvertToWebColor

Converts the Color class instance to its hex representation of the RGB triad in HTML-style syntax.

Public method Static member GetCmykColorProfile

Returns a CMYK color profile specified by the CmykColorProfileFileName property or creates a new one.

Public method Static member GetGrayscaleColorProfile

Returns a grayscale color profile specified by the GrayscaleColorProfileFileName property or creates a new one.

Public method Static member GetImageSize

Returns the size and resolution of an image stored at the specified path.

Public method Static member GetNumberFormat

Returns a number format.

Public method Static member GetRgbColorProfile

Returns a RGB color profile specified by the RgbColorProfileFileName property or creates a new one.

Public method Static member LoadBitmap

Loads bitmap from the specified path.

Public method Static member ParseWebColor

Parses a string which contains a hex representation of the RGB triad in HTML-style syntax to the Color value.

Public method Static member SaveBitmap

Saves bitmap to the specified path.

See Also

Reference