Discussion:
Radius on rounded corners
(too old to reply)
sivi
2008-11-05 09:20:03 UTC
Permalink
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
Michael Koerner
2008-11-05 11:26:38 UTC
Permalink
Depending on your version of PowerPoint. You might consider using a rounded
corner rectangle, and use your picture as the fill.
--
Michael Koerner
MS MVP - PowerPoint


"sivi" <***@discussions.microsoft.com> wrote in message news:D48EBF6D-1524-41A4-A145-***@microsoft.com...
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
sivi
2008-11-05 12:01:00 UTC
Permalink
I use Powerpoint 2007. If I use a rectnagle with fill, I can not crop the
image... I make this as a template for a client, and I don't want to make
them crop the image before incerting it.
Post by Michael Koerner
Depending on your version of PowerPoint. You might consider using a rounded
corner rectangle, and use your picture as the fill.
--
Michael Koerner
MS MVP - PowerPoint
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
Echo S
2008-11-05 12:26:29 UTC
Permalink
No. You can use Tile Picture as Texture in the fill options, but that's
relative to the picture size -- there's not a way to set it at a specific
size.
--
Echo [MS PPT MVP] http://www.echosvoice.com
What's new in PPT 2007? http://www.echosvoice.com/2007.htm
Fixing PowerPoint Annoyances http://tinyurl.com/36grcd
PowerPoint 2007 Complete Makeover Kit http://tinyurl.com/32a7nx
Post by sivi
I use Powerpoint 2007. If I use a rectnagle with fill, I can not crop the
image... I make this as a template for a client, and I don't want to make
them crop the image before incerting it.
Post by Michael Koerner
Depending on your version of PowerPoint. You might consider using a rounded
corner rectangle, and use your picture as the fill.
--
Michael Koerner
MS MVP - PowerPoint
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
Steve Rindsberg
2008-11-05 14:43:48 UTC
Permalink
Post by sivi
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
With VBA, yes I think so.

After you've adjusted the corners to suit your taste, Run GetRounding to find
out the rounding value you've set. Then use that value in place of "2" in
SetRounding below. Select another shape and run SetRounding to set the radius.

You'll have to manually change the shape to rounded rectangle before doing all
this, of course.

Sub GetRounding()

Dim oSh As Shape
Set oSh = ActiveWindow.Selection.ShapeRange(1)

With oSh
MsgBox .Adjustments(1)
End With

Set oSh = Nothing

End Sub


Sub SetRounding()

Dim oSh As Shape
Set oSh = ActiveWindow.Selection.ShapeRange(1)

With oSh
' Use the rounding value in place of 2
.Adjustments(1) = 2
End With

Set oSh = Nothing

End Sub



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Steve Rindsberg
2008-11-05 17:28:38 UTC
Permalink
Post by Steve Rindsberg
Post by sivi
I inserted a phot o into a slide in my presentation. Then I made rounded
corners whit that imagefigure command. But is there a way to define the
radius on the corners to an exact value? I nead to easely difine the same
radius to all images I insert, no matter if I scale or crop them. Does
anyone know if this is possible? Thanks in advance!
With VBA, yes I think so.
After you've adjusted the corners to suit your taste, Run GetRounding to find
out the rounding value you've set. Then use that value in place of "2" in
SetRounding below. Select another shape and run SetRounding to set the radius.
You'll have to manually change the shape to rounded rectangle before doing all
this, of course.
Actually, no. Had another look at this and ...

Change a picture to a rounded rectangle, set the rounding radius (PowerPoint
2007)
http://www.pptfaq.com/FAQ00968.htm

Only difference is that you change this bit:

With oSh
.Adjustments(1) = sngRounding
End With

to this:

With oSh
oSh.AutoShapeType = msoShapeRoundedRectangle
.Adjustments(1) = sngRounding
End With

Now you just need to insert the photo and run the SetRounding macro.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================

Loading...