Using this library is the same as it was for using the built in ColorTranslator for Winforms applications.

In your code you would do something like this:

Color myColor = Color.Blue;
// to get the html of the color
String html = ColorTranslator.ToHtml(myColor).ToString();
//to get the color from html hex
myColor = ColorTranslator.FromHtml(html);

It is the same for the following functions:

ToOle
FromOle
ToWin32
FromWin32

In addition, this library contains functions for converting the different color types:

FromWin32toOle
FromOletoWin32
FromHtmltoOle
FromOletoHtml

And this library also adds support for the color code HSL:
ToHsl
FromHsl


If you find this project useful, please consider donating as I am a student without an income.
Donate

Last edited Oct 29, 2012 at 3:41 AM by glctig, version 1

Comments

No comments yet.