Ask Your Question
0

Does Draw file format support clip? [closed]

asked 2012-04-05 17:10:16 +0200

Horcrux7 gravatar image

I want write a Draw file with clipping? Is this supported and how is the syntax? For example I want write like this simple svg sample:

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="360px" height="510px"
 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>Das clipPath-Element</title>
  <defs>
    <style type="text/css">
    <![CDATA[
      text {font-family:Verdana,sans-serif; font-size:36px;
            font-weight:bold; fill:white;}
      rect {fill:none; stroke:white; stroke-dasharray:5,2;}
    ]]>
    </style>

    <clipPath id="cp1">
      <circle cx="80" cy="110" r="50" />
      <circle cx="180" cy="130" r="80" />
      <circle cx="280" cy="150" r="50" />
    </clipPath>
    <clipPath id="cp2">
      <circle id="clippie" cx="-10" cy="380" r="30" />
    </clipPath>
  </defs>

  <rect x="0" y="0" width="360" height="510"
    style="fill:black; stroke:none;" />
  <rect x="0" y="0" width="360" height="510"
    style="fill:red; stroke:none;" clip-path="url(#cp1)" />

</svg>
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-16 00:55:51.419520

1 Answer

Sort by » oldest newest most voted
1

answered 2012-05-17 17:41:35 +0200

mahfiaz gravatar image

Documentation suggests there is rectangular clipping only, also known as cropping (warning, it's a HUGE document):

http://docs.oasis-open.org/office/v1.1/OS/OpenDocument-v1.1-html/OpenDocument-v1.1.html#15.27.30.Clipping|outline

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-05 17:10:16 +0200

Seen: 335 times

Last updated: May 17 '12