VegaRise.NET
Back to DOM

FillTileClass

Definition

Namespace
DOM.Elements.Graphics.Colors
Assembly
DOM.dll

Represents tiling configuration for a picture or texture fill.

Remarks

describes how a picture or texture should be repeated, scaled, aligned, and possibly mirrored across the fill area. It is used by . FillTile FillTile Both horizontal and vertical scaling are expressed as values, where 100 means no scaling. Percentage

Examples

csharp
1// 1. Tile at 50% scale with top-left alignment
2var tile = new FillTile
3{
4 ScaleX = new Percentage(50),
5 ScaleY = new Percentage(50),
6 Alignment = RectangleAlignmentValues.TopLeft
7};
8
csharp
1// 2. Tile at 100% scale with mirror flip
2var tile = new FillTile
3{
4 ScaleX = new Percentage(100),
5 ScaleY = new Percentage(100),
6 MirrorType = TileFlipValues.Both
7};
8
csharp
1// 3. Offset tile
2var tile = new FillTile
3{
4 Offset = new BasePosition { X = 10, Y = 10 },
5 Alignment = RectangleAlignmentValues.Center
6};
7
csharp
1// 4. Attach to a PictureOrTextureFill
2var fill = new PictureOrTextureFill
3{
4 Picture = new Image("pattern.png"),
5 FillTile = new FillTile { ScaleX = new Percentage(75), ScaleY = new Percentage(75) }
6};
7

Properties

Gets or sets the alignment used to position tiles within the fill area.

MirrorTypeTileFlipValues

Gets or sets the mirror (flip) mode applied to each tile.

Gets or sets the offset applied to the tiled content.

Gets or sets the horizontal scale factor for the tiled content.

Gets or sets the vertical scale factor for the tiled content.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in