Visio Guy

Visio Discussions => Programming & Code => Topic started by: scotth1963 on September 15, 2017, 11:51:04 AM

Title: Convert Picture from Enhanced Metafile to Bitmap
Post by: scotth1963 on September 15, 2017, 11:51:04 AM
Is there a way to convert a Picture from enhanced metafile (picture.type = 4) to Bitmap format (picture.type = 1)?
Title: Re: Convert Picture from Enhanced Metafile to Bitmap
Post by: Paul Herber on September 21, 2017, 04:30:42 PM
Not within Visio. Use a graphics application to convert the EMF file to BMP then import that into Visio.
But why?
Title: Re: Convert Picture from Enhanced Metafile to Bitmap
Post by: scotth1963 on September 22, 2017, 03:05:00 PM
I want to use a stencil icon in the RibbonXML. This way you don't need to carry around bmp files but they can be generated on the fly. I posted this as I was learning more about the differences between master.shape.picture and return from loadPicture().

I actually resolved this already you can look at the code here http://visguy.com/vgforum/index.php?topic=8051.0 (http://visguy.com/vgforum/index.php?topic=8051.0)

But thank you for the response!