using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
string s = "";
Color c = Color.LightBlue;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.Yellow;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.YellowGreen;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.Red;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.Blue;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.Orange;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
c = Color.Purple;
s += c.A.ToString() + ",";
s += c.R.ToString() + ",";
s += c.G.ToString() + ",";
s += c.B.ToString() + "\r\n";
MessageBox.Show(s);
}
}
}
とりあえず色のARGBデータをMessageBoxで表示します
なくてもいいけどあれば便利みたいな
0 件のコメント:
コメントを投稿