The solution i've used is the following:
-- Place the text node(s) in the tikzpicture in their normal color (now it's black):
\begin{tikzpicture}[yscale=-0.1,xscale=0.1]
\node[anchor=center] at (10,10) {
\begin{minipage}{7cm}
\begin{raggedright}
\fontsize{12}{13}\selectfont
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. ``What's happened to me?'' he thought.\par
\end{raggedright}
\end{minipage}
};
-- Start a scope, where you can scale and position the path (originaly exported from Inkscape). Positioning with shift parameter, scaling with x and y parameters:
\scope[shift={(-30,-70)},y=4pt, x=4pt]
-- Place the path once to fill it with custom color:
\fill[black]
(176.9112,753.3085) .. controls (175.1937,738.0045) and (80.1970,487.6617) ..
(82.4016,472.4964) .. controls (85.5629,452.1139) and (188.0374,667.3609) ..
(196.4229,648.5539) .. controls (204.3755,630.7243) and (242.5487,465.7141) ..
(258.1298,454.3997) .. controls (285.7640,437.3259) and (291.8933,586.8805) ..
(323.4463,583.2517) .. controls (380.2399,578.2668) and (378.0147,580.5031) ..
(434.9882,579.8586) .. controls (450.4961,579.6976) and (387.4331,461.0306) ..
(402.9416,460.9527) -- (556.6130,579.1701) -- (556.6130,579.1701) .. controls
(540.5924,579.1263) and (524.5716,579.1241) .. (508.5512,579.2478) .. controls
(451.6441,579.7674) and (548.2176,721.0517) .. (491.4945,726.0884) .. controls
(460.5044,729.6884) and (275.0470,592.3333) .. (247.7567,608.7835) .. controls
(232.2688,619.7789) and (435.5657,765.3166) .. (427.5294,782.8032) .. controls
(419.1556,801.4606) and (197.8962,687.4329) .. (194.9239,707.7216) .. controls
(192.8788,722.7147) and (191.3417,737.9821) .. (193.8339,753.0290) --
(176.9112,753.3085) -- cycle;
-- Insert the path again, because clip and fill somehow doesn't work together in this case:
\clip
(176.9112,753.3085) .. controls (175.1937,738.0045) and (80.1970,487.6617) ..
(82.4016,472.4964) .. controls (85.5629,452.1139) and (188.0374,667.3609) ..
(196.4229,648.5539) .. controls (204.3755,630.7243) and (242.5487,465.7141) ..
(258.1298,454.3997) .. controls (285.7640,437.3259) and (291.8933,586.8805) ..
(323.4463,583.2517) .. controls (380.2399,578.2668) and (378.0147,580.5031) ..
(434.9882,579.8586) .. controls (450.4961,579.6976) and (387.4331,461.0306) ..
(402.9416,460.9527) -- (556.6130,579.1701) -- (556.6130,579.1701) .. controls
(540.5924,579.1263) and (524.5716,579.1241) .. (508.5512,579.2478) .. controls
(451.6441,579.7674) and (548.2176,721.0517) .. (491.4945,726.0884) .. controls
(460.5044,729.6884) and (275.0470,592.3333) .. (247.7567,608.7835) .. controls
(232.2688,619.7789) and (435.5657,765.3166) .. (427.5294,782.8032) .. controls
(419.1556,801.4606) and (197.8962,687.4329) .. (194.9239,707.7216) .. controls
(192.8788,722.7147) and (191.3417,737.9821) .. (193.8339,753.0290) --
(176.9112,753.3085) -- cycle;
-- Now the trick: an other \scope inside the first one. But this \scope have exactly the opposite shift parameters, so we return to the original position. x and y should be 10 mm, what i actually don't understand, because the unit size of this tikzpicture was 1 mm.
\scope[shift={(30cm,70cm)},x=10mm,y=10mm]
-- Inside this \scope, i put the same node(s) or whatever tikz objects, what i want to clip, but here the color is white:
\node[anchor=center] at (10,10) {
\begin{minipage}{7cm}
\begin{raggedright}
\fontsize{12}{13}\selectfont\color{white}
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. ``What's happened to me?'' he thought.\par
\end{raggedright}
\end{minipage}
};
-- Finally, close the two scopes:
\endscope
\endscope
The whole file looks like this:
\documentclass{minimal}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{graphicx}
\usepackage[paperwidth=79mm,paperheight=85mm,margin=0cm,left=0cm,bottom=0mm]{geometry}
\usepackage{fullpage}
\setlength{\marginparwidth}{0mm}
\setlength{\marginparsep}{0mm}
\setlength{\hoffset}{-1in}
\setlength{\voffset}{-1in}
\setlength{\topmargin}{0mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\setlength{\footskip}{0mm}
\setlength{\textheight}{85mm}
\setlength{\textwidth}{79mm}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,shadows,calc,svg.path}
\usepackage{xcolor,color}
\tikzstyle{default}=[anchor=north west,text width=79mm,inner sep=0pt,text height=85mm]
\tikzset{grid/.style={gray,very thin,opacity=1}}
\begin{document}
\pagestyle{empty}
\setlength{\parindent}{0em}
\begin{tikzpicture}[yscale=-0.1,xscale=0.1]
\node[anchor=center] at (10,10) {
\begin{minipage}{7cm}
\begin{raggedright}
\fontsize{12}{13}\selectfont
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. ``What's happened to me?'' he thought.\par
\end{raggedright}
\end{minipage}
};
\scope[shift={(-30,-70)},y=4pt, x=4pt]
\fill[black]
(176.9112,753.3085) .. controls (175.1937,738.0045) and (80.1970,487.6617) ..
(82.4016,472.4964) .. controls (85.5629,452.1139) and (188.0374,667.3609) ..
(196.4229,648.5539) .. controls (204.3755,630.7243) and (242.5487,465.7141) ..
(258.1298,454.3997) .. controls (285.7640,437.3259) and (291.8933,586.8805) ..
(323.4463,583.2517) .. controls (380.2399,578.2668) and (378.0147,580.5031) ..
(434.9882,579.8586) .. controls (450.4961,579.6976) and (387.4331,461.0306) ..
(402.9416,460.9527) -- (556.6130,579.1701) -- (556.6130,579.1701) .. controls
(540.5924,579.1263) and (524.5716,579.1241) .. (508.5512,579.2478) .. controls
(451.6441,579.7674) and (548.2176,721.0517) .. (491.4945,726.0884) .. controls
(460.5044,729.6884) and (275.0470,592.3333) .. (247.7567,608.7835) .. controls
(232.2688,619.7789) and (435.5657,765.3166) .. (427.5294,782.8032) .. controls
(419.1556,801.4606) and (197.8962,687.4329) .. (194.9239,707.7216) .. controls
(192.8788,722.7147) and (191.3417,737.9821) .. (193.8339,753.0290) --
(176.9112,753.3085) -- cycle;
\clip
(176.9112,753.3085) .. controls (175.1937,738.0045) and (80.1970,487.6617) ..
(82.4016,472.4964) .. controls (85.5629,452.1139) and (188.0374,667.3609) ..
(196.4229,648.5539) .. controls (204.3755,630.7243) and (242.5487,465.7141) ..
(258.1298,454.3997) .. controls (285.7640,437.3259) and (291.8933,586.8805) ..
(323.4463,583.2517) .. controls (380.2399,578.2668) and (378.0147,580.5031) ..
(434.9882,579.8586) .. controls (450.4961,579.6976) and (387.4331,461.0306) ..
(402.9416,460.9527) -- (556.6130,579.1701) -- (556.6130,579.1701) .. controls
(540.5924,579.1263) and (524.5716,579.1241) .. (508.5512,579.2478) .. controls
(451.6441,579.7674) and (548.2176,721.0517) .. (491.4945,726.0884) .. controls
(460.5044,729.6884) and (275.0470,592.3333) .. (247.7567,608.7835) .. controls
(232.2688,619.7789) and (435.5657,765.3166) .. (427.5294,782.8032) .. controls
(419.1556,801.4606) and (197.8962,687.4329) .. (194.9239,707.7216) .. controls
(192.8788,722.7147) and (191.3417,737.9821) .. (193.8339,753.0290) --
(176.9112,753.3085) -- cycle;
\scope[shift={(30cm,70cm)},x=10mm,y=10mm]
\node[anchor=center] at (10,10) {
\begin{minipage}{7cm}
\begin{raggedright}
\fontsize{12}{13}\selectfont\color{white}
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. ``What's happened to me?'' he thought.\par
\end{raggedright}
\end{minipage}
};
\endscope
\endscope
\end{tikzpicture}
\end{document}
I'm satisfied with the result, because the text nodes are exactly in identical position, so the black and white text is perfectly readable.
radiusparameter. With such complicated paths, like in my example (what was exported from Inkscape), some other method needed for scaling. Thanks for the idea, thenewEnvironmakes the code more clear! – deeenes Mar 07 '12 at 12:15\clipcommand. Thank You for this compact and nice solution! – deeenes Mar 12 '12 at 17:45