Class PictureFill
Represents a PictureFill.
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class PictureFill
Properties
RotateWithShape
Gets or sets rotate with shape.
Declaration
public bool RotateWithShape { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Stretch
Gets stretch.
Declaration
public Stretch Stretch { get; }
Property Value
| Type | Description |
|---|---|
| Stretch |
Tile
Gets tile.
Declaration
public Tile Tile { get; }
Property Value
| Type | Description |
|---|---|
| Tile |
TilePictureAsTexture
Gets or sets whether the picture is tiled (repeated horizontally and vertically to fill the shape).
Declaration
public bool TilePictureAsTexture { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Transparency
Gets or sets transparency.
Declaration
public double Transparency { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
GetImageBytes()
Gets the raw embedded image bytes, when available.
Declaration
public byte[] GetImageBytes()
Returns
| Type | Description |
|---|---|
| byte[] | The embedded image bytes, or |
SetImageBytes(byte[], string)
Sets raw embedded image bytes for this picture fill.
Declaration
public void SetImageBytes(byte[] bytes, string extension = ".png")
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | The image bytes. |
| string | extension | The image extension, including the leading dot. |