📄 pfutility.cs.svn-base
字号:
using System;
namespace Aspecto.PocketFrog
{
/// <summary>
/// Summary description for PFUtility.
/// </summary>
public class PFUtility
{
public PFUtility()
{
//
// TODO: Add constructor logic here
//
}
public static ushort color(ushort red, ushort green, ushort blue)
{
return Convert.ToUInt16(((red << 8) & Defs.RED_MASK) | ((green << 3) & Defs.GREEN_MASK) | (blue >> 3));
}
/*
// Return a "Pixel" from the specified COLORREF structure
ushort Color( const COLORREF& color )
{
return Color( GetRValue(color), GetGValue(color), GetBValue(color) );
}
*/
public static ushort RGB(System.Drawing.Color col)
{
return color(col.R, col.G, col.B);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -