⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pfutility.cs.svn-base

📁 这是一个windows mobile程序能够实现窗体运货效果非常不错
💻 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 + -