using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using DevExpress.XtraEditors; using XdCxRhDW.Core; using XdCxRhDW.Core.Api; namespace XdCxRhDW.App.CorTools { public partial class CgImageForm : DevExpress.XtraEditors.XtraForm { public CgImageForm() { InitializeComponent(); } List list; public CgImageForm(List list) :this() { this.list= list; } private void CgImageForm_Load(object sender, EventArgs e) { Bitmap bmp = new Bitmap(809, 587); for (int x = 0; x < 809; x++) { for (int y = 0; y < 768; y++) { var rgbb = ColorRGB.GetSpecColor(x / 809d); int r = rgbb.R; int g = rgbb.G; int b = rgbb.B; Color c = Color.FromArgb(r, g, b); bmp.SetPixel(x, y, c); } } this.pictureEdit1.Image = bmp; } } }