Convert Color To Ole Color - CSharp System.Drawing

CSharp examples for System.Drawing:Color Convert

Description

Convert Color To Ole Color

Demo Code

// 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);
      }
}

Related Tutorials