|
前回の RGBAlphaImageChanger を利用して
といった風のFormをこさえて
2つのJPGを合成してみました。
ーーーーー
using System;
using System.Drawing; using System.Text; using System.Windows.Forms; using RGBAlphaImageChanger; namespace ImageEtude
{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void image01ToolStripMenuItem_Click(object sender, EventArgs e)
{ if (this.openFileDialog1.ShowDialog() == DialogResult.OK) { Image im = Image.FromFile(openFileDialog1.FileName); this.pictureBox1.Image = im; } } private void image02ToolStripMenuItem_Click(object sender, EventArgs e)
{ if (this.openFileDialog1.ShowDialog() == DialogResult.OK) { Image im = Image.FromFile(openFileDialog1.FileName); this.pictureBox2.Image = im; } } private void button1_Click(object sender, EventArgs e)
{ RGBA.RGBAValue myrgba01 = new RGBA.RGBAValue( (float)nUD01R.Value, (float)nUD01G.Value, (float)nUD01B.Value, (float)nUD01A.Value ); RGBA.RGBAValue myrgba02 = new RGBA.RGBAValue( (float)nUD02R.Value, (float)nUD02G.Value, (float)nUD02B.Value, (float)nUD02A.Value ); this.pictureBox3.Image = RGBA.BindRGBAImages(pictureBox1.Image, myrgba01, pictureBox2.Image, myrgba02); } private void exitToolStripMenuItem_Click(object sender, EventArgs e)
{ this.Close(); } private void saveToolStripMenuItem_Click(object sender, EventArgs e)
{ if (saveFileDialog1.ShowDialog() == DialogResult.OK) { pictureBox3.Image.Save(saveFileDialog1.FileName); } } } } ーーーーー
|

>
- コンピュータとインターネット
>
- コンピュータ
>
- ソフトウェア








