S
Stumple
I have a shape on a visio page. I am using .NET to control the visio drawing
control which contains the shape. I would like to change the icon that is
displayed on a shape. How might I do this?
I have code to get a picture but I do not know how to set the shapes icon
with it.
int screenWidth = visio.Bounds.Width;
int screenHeight = visio.Bounds.Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth,
screenHeight));
Pic p = new Pic();
p.Image = bmpScreenShot;
Thank you.
control which contains the shape. I would like to change the icon that is
displayed on a shape. How might I do this?
I have code to get a picture but I do not know how to set the shapes icon
with it.
int screenWidth = visio.Bounds.Width;
int screenHeight = visio.Bounds.Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth,
screenHeight));
Pic p = new Pic();
p.Image = bmpScreenShot;
Thank you.