Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
146164 | Jul 23,2019 06:56 PM UTC | Jul 25,2019 10:38 AM UTC | WinForms | 3 |
![]() |
Tags: Diagram |
// Get the location of image
string filePath = Path.Combine(Environment.CurrentDirectory, "Images\\personico.bmp");
|
|
// Get an location of image
string filePath = Path.Combine(Environment.CurrentDirectory, "Images\\personico.bmp");
// Set an filepath to bitmap class
Bitmap bitmap = new Bitmap(filePath);
//Render an image Node
BitmapNode image = new BitmapNode(bitmap, new RectangleF(0, 0, 100, 50));
diagram1.Model.AppendChild(image);
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.