CSharp examples for System.Drawing:Color Convert
Convert Color To Ole Color
// Permission is hereby granted, free of charge, to any person obtaining a copy of this using System.Windows.Media; using System;//from w w w. j a v a 2 s . co m public class Main{ public static UInt32 ConvertToOleColor(System.Drawing.Color color) { return (UInt32)System.Drawing.ColorTranslator.ToOle(color); } }