Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
// 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);
|