mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-27 18:47:55 +00:00
22 lines
474 B
C#
Executable File
22 lines
474 B
C#
Executable File
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Drawing;
|
|
|
|
namespace MtApi
|
|
{
|
|
class MtApiColorConverter
|
|
{
|
|
public static Color ConvertFromMtColor(int color)
|
|
{
|
|
return Color.FromArgb(color);
|
|
}
|
|
|
|
public static int ConvertToMtColor(Color color)
|
|
{
|
|
return color == Color.Empty ? 0xffffff : (color.ToArgb() & 0xffffff);
|
|
}
|
|
}
|
|
}
|