C# Class SharpPlant.SharpPlantReview.SprUtilities

Datei anzeigen Open project: phusband/SharpPlant Class Usage Examples

Public Methods

Method Description
ClearTagRegistry ( ) : void

Clears the default tag settings from the registry.

From0Bgr ( int bgrColor ) : Color

Returns a fully opaque (Alpha 255) color from a 0BGR format.

Get0Bgr ( Color rgbColor ) : int

Returns a 24-bit color integer.

GetError ( int errorStatus ) : SprException

Checks for errors from a status returned by a DrApi function.

SetTagRegistry ( SprTag tag ) : void

Writes the tag properties to the default tag registry settings used by SmartPlant Review.

Method Details

ClearTagRegistry() public static method

Clears the default tag settings from the registry.
public static ClearTagRegistry ( ) : void
return void

From0Bgr() public static method

Returns a fully opaque (Alpha 255) color from a 0BGR format.
public static From0Bgr ( int bgrColor ) : Color
bgrColor int The 0BGR integer to be converted.
return Color

Get0Bgr() public static method

Returns a 24-bit color integer.
public static Get0Bgr ( Color rgbColor ) : int
rgbColor Color The System.Drawing.Color to be converted.
return int

GetError() public static method

Checks for errors from a status returned by a DrApi function.
public static GetError ( int errorStatus ) : SprException
errorStatus int The integer status returned by a DrApi function.
return SprException

SetTagRegistry() public static method

Writes the tag properties to the default tag registry settings used by SmartPlant Review.
public static SetTagRegistry ( SprTag tag ) : void
tag SprTag The tag used to determine settings values.
return void