pfutility.cs.svn-base
来自「这是一个windows mobile程序能够实现窗体运货效果非常不错」· SVN-BASE 代码 · 共 38 行
SVN-BASE
38 行
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 + =
减小字号Ctrl + -
显示快捷键?