mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-19 05:38:12 +00:00
Added projects MtApi4 and MtApi5
This commit is contained in:
Executable
+21
@@ -0,0 +1,21 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user