visio shape exportet + image map

T

timtos

Hello.

I think this is not an easy question but I hope someone out there can help me.
The problem is the following:

I export an active page as a gif and put it in a html file. So far so good. But I want to create an image map in that html file for
shapes containing a hyperlink, so that one can click on these shapes in the html file and can go to that page the shape is refering
to. I want to use a simple rectangle for this image map.

Concerning this, I have two problems - x and y (coords for the image map areas)

How can I get these values in pixel dimensions for each shape (pinX and pinY are top-left)?
Any other ideas how to do something like that?

Thank you really A LOT!!!
Every little hint is welcome...

Greetings,
timtos.
 
T

timtos

First of all, thanks for the detailed answer!
Your alternatives are both very good ideas.

But I´ve tried the first one a couple of days ago and had no luck with it.
But I didn´t use the boundingbox function and instead just used the width
and heigth of the min. rectangle containing all shapes in mm(*). But I think that
should make no difference?! The problem was, that my x and y values were
too inaccurate due to the pixel factor I calculated with the other factors being
the image width and height of the page; something like that:

pixelFactorX = imageWidth/ xBiggest(*)) + 0.49;
....
xForImageMap = (pinX-xSmallest) * pixelFactorX;

The second alternative is a great one ;-)
I´ll try it right now...

Greetings and thanks again for your great help,
timtos.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top