J
Jeff Hall
I have 3 identical pictures linked to a W2000 document
testpic.PNG
testpic.JPG
testpic.GIF
I am getting the original picture size as follows
w = Selection.InlineShapes(1).Width
sw = Selection.InlineShapes(1).ScaleWidth
h = Selection.InlineShapes(1).Height
sh = Selection.InlineShapes(1).ScaleHeight
' Original Size of Picture in pixels
ow = Round(w / sw * 100, 0)
oh = Round(h / sh * 100, 0)
However, although Word calculates the size of the PNG correctly, it thinks
the JPG and the GIF are exactly 75% of the size of the PNG
PNG 315 x 284 OK
JPG 236 x 213 Wrong
GIF 236 x 213 Wrong
Any ideas what's wrong?
Interestingly, the PNG displays too large in the document, whereas the other
two are displayed at the correct size, even though the Format|Picture dialog
shows them all at 100% scaling.
testpic.PNG
testpic.JPG
testpic.GIF
I am getting the original picture size as follows
w = Selection.InlineShapes(1).Width
sw = Selection.InlineShapes(1).ScaleWidth
h = Selection.InlineShapes(1).Height
sh = Selection.InlineShapes(1).ScaleHeight
' Original Size of Picture in pixels
ow = Round(w / sw * 100, 0)
oh = Round(h / sh * 100, 0)
However, although Word calculates the size of the PNG correctly, it thinks
the JPG and the GIF are exactly 75% of the size of the PNG
PNG 315 x 284 OK
JPG 236 x 213 Wrong
GIF 236 x 213 Wrong
Any ideas what's wrong?
Interestingly, the PNG displays too large in the document, whereas the other
two are displayed at the correct size, even though the Format|Picture dialog
shows them all at 100% scaling.