Freigeben über


Apply a tile brush to an object's fill or stroke

JJ170518.bf9c77b1-ba7a-4f3b-8380-d05728d208d1(de-de,VS.110).png

A tile brush paints an area with a repeating image or pattern. You can create a tile brush from an image brush, drawing brush, or visual brush.

To create a tile brush, you begin by creating a brush resource. After you create the brush resource, you can apply the brush as a tile brush, and then transform the brush by using the Brush Transform tool.

HinweisHinweis

You cannot specify a value for the TileBrush property in Microsoft Silverlight projects. For more information about working with tile brushes in Silverlight projects, see TileBrush Class on MSDN.

To apply a tile brush to an object's fill or stroke

  1. Add an object to the artboard.

  2. In the Brushes category in the Properties panel, click Brush resources JJ170518.415db740-5a54-48d2-8678-245ccfa7ee8b(de-de,VS.110).png, and then click one of the following local brush resources:

    TippTipp

    To determine the type of brush resource, in the Resources panel, hover the mouse pointer over the resource to open a pop-up identifier that displays the brush type.

    The brush appears inside the object on the artboard.

  3. Click Tile brush JJ170518.14623a18-70ab-450f-af01-ae9902d60e4d(de-de,VS.110).png. The tile brush properties appear. In the Brushes category, set the TileMode property to one of the following:

    • None   The base tile is applied but not repeated. The remaining area is transparent.

      TileBrush TileMode: Keine/Expression Blend

    • FlipX   The same as Tile except that alternate columns of tiles are flipped horizontally. The base tile itself is not flipped.

      TileBrush TileMode: X-Achse kippen/Expression Blend

    • FlipY   The same as Tile except that alternate rows of tiles are flipped vertically. The base tile itself is not flipped.

      TileBrush TileMode: Y-Achse kippen/Expression Blend

    • FlipXY   The combination of FlipX and FlipY. The base tile itself is not flipped.

      TileBrush TileMode: FlipXY/Expression Blend

    • Tile   The base tile is drawn and the remaining area is filled by repeating the base tile. The right edge of one tile meets the left edge of the next, and similarly for the bottom and top edges

      TileBrush TileMode: Kachel/Expression Blend

  4. In the Brushes category, set the Stretch property to one of the following:

    • None   The content preserves its original size.

      Kacheleffekt – Stretch-Eigenschaft: Keine

    • Fill   The content is resized to fill the dimensions of the object. The aspect ratio is not preserved.

      Kacheleffekt – Stretch-Eigenschaft: Ausfüllen

    • Uniform   The content is resized to fit the dimensions of the object while preserving the aspect ratio.

      Kacheleffekt – Stretch-Eigenschaft:: Einheitlich

    • UniformToFill   The content is resized to fill the dimensions of the object while preserving the aspect ratio. If the aspect ratio of the destination object differs from the source content, the source content is clipped to fit in the object dimensions.

      Kacheleffekt – Stretch-Eigenschaft:: UniformToFill

  5. Optionally, if you are working with an ImageBrush resource, you can change the source image by selecting an alternate image in the ImageSource drop-down list box.

To transform a tile brush applied to an object

  1. With the object selected on the artboard, select Brush Transform Werkzeug zur Pinseltransformation in the Tools panel.

    TippTipp

    With the object selected on the artboard, press B to select the Brush Transform tool.

    A blue arrow adorner appears around the rectangle on the artboard.

  2. With the Brush Transform tool selected, do one or more of the following:

    • To move a brush, drag anywhere inside the object. This corresponds to the Transform tab on the RelativeTransform box in the Properties panel.

      TileBrush RelativeTransform verschieben

    • To rotate a brush, put your pointer outside any corner of the bounding outline around the object and drag when your pointer changes to a rotation handle JJ170518.888cbf6b-c442-424d-977d-61d942703c4a(de-de,VS.110).png. This corresponds to the Rotate tab on the RelativeTransform box in the Properties panel.

      TileBrush RelativeTransform: Drehen

    • To rescale either a tile brush or radial gradient brush, put your pointer on any handle on the side or corner of the object, and then drag. This corresponds to the Scale tab on the RelativeTransform box in the Properties panel.

      TileBrush RelativeTransform neu skalieren

    • To skew a brush, put your pointer outside a side handle and drag when your pointer changes to skew handles JJ170518.2be41f49-8a61-4966-bf08-598f4253b610(de-de,VS.110).png. This corresponds to the Skew tab on the RelativeTransform box in the Properties panel.

      TileBrush RelativeTransform neigen

To remove a tile brush

  • With the object selected on the artboard, click No brush JJ170518.706bbd5c-c0e0-43a1-9604-297f019d0275(de-de,VS.110).png in the Brushes category of the Properties panel.