Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / May 2006

Tip: Looking for answers? Try searching our database.

How to maintain aspect ratio of an image in autoshape

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sajin - 19 May 2006 12:49 GMT
Hi all,

If we place an small image in word Autoshape it's aspect ratio gets
is not maintained. Is it possible to maintain aspect ratio of an image
when we place it in Autoshape.(getting blured)
if it is through programming or manually..anything will help

Please help!
Thanks in advance,
Sajin
Cindy M  -WordMVP- - 20 May 2006 19:41 GMT
Hi Sajin,

> If we place an small image in word Autoshape it's aspect ratio gets
> is not maintained. Is it possible to maintain aspect ratio of an image
> when we place it in Autoshape.(getting blured)
> if it is through programming or manually..

Why are you inserting the image into an AutoShape? Into what kind of
AutoShape - a Textbox, or something else? Which version of Word?

Note that "blurred" has nothing to do with "aspect ratio". If you're
concerned about "blurred", you should be asking in the
word.graphics.drawing newsgroup.

You might try using a FRAME (from the Forms toolbar). Format it with an
exact width OR height (which ever should be the limiting factor).
Inserting an image into it should proportionally resize the image
(reduce it) to fit the limiting dimension of the frame.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
Jay Freedman - 20 May 2006 23:00 GMT
>Hi Sajin,
>
[quoted text clipped - 22 lines]
>This reply is posted in the Newsgroup; please post any follow question
>or reply in the newsgroup and not by e-mail :-)

I suspect Sajin's trying to do the same thing as Andru, who posted
earlier this week
(http://groups.google.com/group/microsoft.public.officedev/browse_frm/thread/f8d0
c4d5c3245197/34939b61ab26c672?lnk=st&q=group%3Amicrosoft.public.word.*+author%3A
andu&rnum=1&hl=en#34939b61ab26c672
)
about using the Selection.ShapeRange.Fill.UserPicture method.

Testing that method, I found the same thing Sajin is concerned about:
If the picture is larger than the shape that's being filled, the shape
clips the picture; but if the picture is smaller than the shape, the
picture is stretched to fill it. The result is blurred because there
isn't enough picture data to interpolate pixels, and there is nothing
in VBA that will let you control the aspect ratio of the picture.

The workaround, as I told Sajin, is to use a separate graphics editor
to embed the small picture in a blank background that's at least as
large as the shape you're trying to fill. That prevents Word from
trying to enlarge the picture.

I can't remember ever seeing another question on this topic. Two in
one week -- what a coincidence!

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.