private void Form1_Load(object sender, System.EventArgs e)
{
Bitmap newBmp = new Bitmap(100, 100);
Graphics g = Graphics.FromImage(newBmp);
g.FillRectangle(new SolidBrush(Color.Red), 0, 0, 33, 100);
g.FillRectangle(new SolidBrush(Color.White), 34, 0, 33, 100);
g.FillRectangle(new SolidBrush(Color.Blue), 68, 0, 33, 100);
pictureBox1.Image = newBmp; //pictureBox1 was dropped on the form
}
WHY WE STAND OUT
- Blazor Competitive Upgrade
- Angular Competitive Upgrade
- JavaScript Competitive Upgrade
- React Competitive Upgrade
- Vue Competitive Upgrade
- Xamarin Competitive Upgrade
- WinForms Competitive Upgrade
- WPF Competitive Upgrade
- PDF Competitive Upgrade
- Word Competitive Upgrade
- Excel Competitive Upgrade
- PPT Competitive Upgrade
CONTACT US
- Fax: +1 919.573.0306
- US: +1 919.481.1974
- UK: +44 20 7084 6215
Toll Free (USA):
- 1-888-9DOTNET
- sales@syncfusion.com
Share with