# Xui.Core.Canvas.Composition.Commands.Records

Assembly: **Xui.Core** · [C# declarations](index.cs) · [Assembly overview](../index.md)

## Types

- [`struct ArcCommand`](#api-fe032a909f56789d)
- [`struct ArcToCommand`](#api-04cda9be71c48166)
- [`struct BeginPathCommand`](#api-7949199284caa65a)
- [`struct BrightnessCommand`](#api-db5570fa79110c6f)
- [`struct ClipCommand`](#api-b9eff0207d52a16b)
- [`struct ClosePathCommand`](#api-0171599f33194e3f)
- [`struct Command`](#api-177a035e938e0a88)
- [`struct CubicCommand`](#api-bee0f130c2f38ed0)
- [`struct DashesCommand`](#api-326a92a1c8204122)
- [`struct EllipseCommand`](#api-1f2d0061ccf86bf8)
- [`struct FillColorCommand`](#api-ae458a8e3e85ff1a)
- [`struct FillCommand`](#api-924d3c2ba255ac2d)
- [`struct FillLinearCommand`](#api-c793aaba0ff0b03e)
- [`struct FillPatternCommand`](#api-5e2ca78918fb8d69)
- [`struct FillRadialCommand`](#api-00cbc4efdf291cb3)
- [`struct FillRectCommand`](#api-35365cb070d1d588)
- [`struct FilterNoneCommand`](#api-7b642e907946f29f)
- [`struct FontCommand`](#api-fe9531cd3c462ef7)
- [`struct GlobalAlphaCommand`](#api-0ccae8c594c8a5a8)
- [`struct ImageCommand`](#api-1c7adedb960424bc)
- [`struct ImageCropCommand`](#api-86f7c7631d2eb806)
- [`struct LineCapCommand`](#api-83116b0c288c703e)
- [`struct LineDashOffsetCommand`](#api-b9e87aac935526e1)
- [`struct LineJoinCommand`](#api-56385e835d3149c1)
- [`struct LineToCommand`](#api-b622da69becb10e4)
- [`struct LineWidthCommand`](#api-0fad2d55a581ce80)
- [`struct MiterLimitCommand`](#api-533a52cff215bc91)
- [`struct MoveToCommand`](#api-e114eb6a373df0a8)
- [`struct QuadraticCommand`](#api-617d57b2137c1718)
- [`struct RectCommand`](#api-da2261b6d3753b08)
- [`struct RestoreCommand`](#api-275108f64f8fefc4)
- [`struct RotateCommand`](#api-dc26c7fe7f22be4e)
- [`struct RoundRectCommand`](#api-95035a88daede90f)
- [`struct SaveCommand`](#api-beca8c33f471588d)
- [`struct ScaleCommand`](#api-324bac1d02312363)
- [`struct SetTransformCommand`](#api-b857c9d579dd2c02)
- [`struct StrokeColorCommand`](#api-f423dff6638d9a80)
- [`struct StrokeCommand`](#api-4409ed576dcb639c)
- [`struct StrokeLinearCommand`](#api-0094e3b8fd555bbd)
- [`struct StrokePatternCommand`](#api-e318ded943d946f8)
- [`struct StrokeRadialCommand`](#api-bf3945c1acddfd82)
- [`struct StrokeRectCommand`](#api-10efb6f562aee719)
- [`struct SymbolCommand`](#api-623c0239dfbdb91d)
- [`struct TextAlignCommand`](#api-4a57257a0f1911c7)
- [`struct TextBaselineCommand`](#api-7c4effcb230b2776)
- [`struct TextCommand`](#api-23e55f07cdf5540f)
- [`struct TextResourceCommand`](#api-aad85d092b4f3725)
- [`struct TransformCommand`](#api-5a4915d76b163734)
- [`struct TranslateCommand`](#api-d0347b57234d6c3e)

<a id="api-fe032a909f56789d"></a>

## `struct ArcCommand`

Packed operands for the Arc canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ArcCommand
{
    public CanvasOp Op;
    public Point Center;
    public nfloat Radius;
    public nfloat StartAngle;
    public nfloat EndAngle;
    public Winding Winding;
    public ArcCommand();
}
```

<a id="api-15575e5ab4ef6c53"></a>

### [`ArcCommand.ArcCommand()`](#api-15575e5ab4ef6c53)


```csharp
public ArcCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-cbbafab2b5427b7a"></a>

### [`Point ArcCommand.Center`](#api-cbbafab2b5427b7a)


```csharp
public Point Center;
```

The Center operand.

<a id="api-010dff6e8025407b"></a>

### [`NFloat ArcCommand.EndAngle`](#api-010dff6e8025407b)


```csharp
public nfloat EndAngle;
```

The EndAngle operand.

<a id="api-a80544ae8331aecc"></a>

### [`CanvasOp ArcCommand.Op`](#api-a80544ae8331aecc)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-5c1686e867cc9c49"></a>

### [`NFloat ArcCommand.Radius`](#api-5c1686e867cc9c49)


```csharp
public nfloat Radius;
```

The Radius operand.

<a id="api-92f64494d64c656b"></a>

### [`NFloat ArcCommand.StartAngle`](#api-92f64494d64c656b)


```csharp
public nfloat StartAngle;
```

The StartAngle operand.

<a id="api-5ae68b5c2559576e"></a>

### [`Winding ArcCommand.Winding`](#api-5ae68b5c2559576e)


```csharp
public Winding Winding;
```

The Winding operand.


<a id="api-04cda9be71c48166"></a>

## `struct ArcToCommand`

Packed operands for the ArcTo canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ArcToCommand
{
    public CanvasOp Op;
    public Point Control;
    public Point End;
    public nfloat Radius;
    public ArcToCommand();
}
```

<a id="api-167b7541456f3493"></a>

### [`ArcToCommand.ArcToCommand()`](#api-167b7541456f3493)


```csharp
public ArcToCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-6082998f247d6330"></a>

### [`Point ArcToCommand.Control`](#api-6082998f247d6330)


```csharp
public Point Control;
```

The Control operand.

<a id="api-7dce62b1b701a0c5"></a>

### [`Point ArcToCommand.End`](#api-7dce62b1b701a0c5)


```csharp
public Point End;
```

The End operand.

<a id="api-790ae8bcac671c59"></a>

### [`CanvasOp ArcToCommand.Op`](#api-790ae8bcac671c59)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-7f66f9ece3251ee5"></a>

### [`NFloat ArcToCommand.Radius`](#api-7f66f9ece3251ee5)


```csharp
public nfloat Radius;
```

The Radius operand.


<a id="api-7949199284caa65a"></a>

## `struct BeginPathCommand`

Packed operands for the BeginPath canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct BeginPathCommand
{
    public CanvasOp Op;
    public BeginPathCommand();
}
```

<a id="api-c33b132cded6e677"></a>

### [`BeginPathCommand.BeginPathCommand()`](#api-c33b132cded6e677)


```csharp
public BeginPathCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-0362f3ea4dd3d312"></a>

### [`CanvasOp BeginPathCommand.Op`](#api-0362f3ea4dd3d312)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-db5570fa79110c6f"></a>

## `struct BrightnessCommand`

Packed operands for the Brightness canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct BrightnessCommand
{
    public CanvasOp Op;
    public nfloat Amount;
    public BrightnessCommand();
}
```

<a id="api-f7602b06c42db766"></a>

### [`BrightnessCommand.BrightnessCommand()`](#api-f7602b06c42db766)


```csharp
public BrightnessCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-42b73a7ec1cb27a4"></a>

### [`NFloat BrightnessCommand.Amount`](#api-42b73a7ec1cb27a4)


```csharp
public nfloat Amount;
```

The Amount operand.

<a id="api-88eaa4e3752f4bd1"></a>

### [`CanvasOp BrightnessCommand.Op`](#api-88eaa4e3752f4bd1)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-b9eff0207d52a16b"></a>

## `struct ClipCommand`

Packed operands for the Clip canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ClipCommand
{
    public CanvasOp Op;
    public ClipCommand();
}
```

<a id="api-ddf94bba8450f09a"></a>

### [`ClipCommand.ClipCommand()`](#api-ddf94bba8450f09a)


```csharp
public ClipCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-3118ce181b7e8ea8"></a>

### [`CanvasOp ClipCommand.Op`](#api-3118ce181b7e8ea8)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-0171599f33194e3f"></a>

## `struct ClosePathCommand`

Packed operands for the ClosePath canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ClosePathCommand
{
    public CanvasOp Op;
    public ClosePathCommand();
}
```

<a id="api-96cc59bdbb1a30ee"></a>

### [`ClosePathCommand.ClosePathCommand()`](#api-96cc59bdbb1a30ee)


```csharp
public ClosePathCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-f8362bc0b643d2b9"></a>

### [`CanvasOp ClosePathCommand.Op`](#api-f8362bc0b643d2b9)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-177a035e938e0a88"></a>

## `struct Command`

The common prefix of every packed canvas command.

Read from a command boundary with MemoryMarshal.Read. Records contain no managed references and use process-local nfloat widths; this is not a portable file format.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct Command
{
    public CanvasOp Op;
}
```

<a id="api-1120378efae04f66"></a>

### [`CanvasOp Command.Op`](#api-1120378efae04f66)


```csharp
public CanvasOp Op;
```

Identifies the concrete header; variable-length headers also specify their payload length.


<a id="api-bee0f130c2f38ed0"></a>

## `struct CubicCommand`

Packed operands for the Cubic canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct CubicCommand
{
    public CanvasOp Op;
    public Point Control1;
    public Point Control2;
    public Point End;
    public CubicCommand();
}
```

<a id="api-8ed6cdb937c8cda3"></a>

### [`CubicCommand.CubicCommand()`](#api-8ed6cdb937c8cda3)


```csharp
public CubicCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-618ca607a442ad13"></a>

### [`Point CubicCommand.Control1`](#api-618ca607a442ad13)


```csharp
public Point Control1;
```

The Control1 operand.

<a id="api-448189cef8a26df5"></a>

### [`Point CubicCommand.Control2`](#api-448189cef8a26df5)


```csharp
public Point Control2;
```

The Control2 operand.

<a id="api-f2b98a724e39246d"></a>

### [`Point CubicCommand.End`](#api-f2b98a724e39246d)


```csharp
public Point End;
```

The End operand.

<a id="api-61fc4bc0908b1cf9"></a>

### [`CanvasOp CubicCommand.Op`](#api-61fc4bc0908b1cf9)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-326a92a1c8204122"></a>

## `struct DashesCommand`

Packed operands for the Dashes canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct DashesCommand
{
    public CanvasOp Op;
    public int Length;
    public DashesCommand();
}
```

<a id="api-724daa070fae6e7b"></a>

### [`DashesCommand.DashesCommand()`](#api-724daa070fae6e7b)


```csharp
public DashesCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-5f4ccb10179b6694"></a>

### [`int DashesCommand.Length`](#api-5f4ccb10179b6694)


```csharp
public int Length;
```

Number of nfloat elements stored immediately after this record.

<a id="api-c2344d3832ea1e7e"></a>

### [`CanvasOp DashesCommand.Op`](#api-c2344d3832ea1e7e)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-1f2d0061ccf86bf8"></a>

## `struct EllipseCommand`

Packed operands for the Ellipse canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct EllipseCommand
{
    public CanvasOp Op;
    public Point Center;
    public nfloat RadiusX;
    public nfloat RadiusY;
    public nfloat Rotation;
    public nfloat StartAngle;
    public nfloat EndAngle;
    public Winding Winding;
    public EllipseCommand();
}
```

<a id="api-8b1ef6b75ebdb144"></a>

### [`EllipseCommand.EllipseCommand()`](#api-8b1ef6b75ebdb144)


```csharp
public EllipseCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-5ba81e4a493d2e41"></a>

### [`Point EllipseCommand.Center`](#api-5ba81e4a493d2e41)


```csharp
public Point Center;
```

The Center operand.

<a id="api-84003f1697ab475f"></a>

### [`NFloat EllipseCommand.EndAngle`](#api-84003f1697ab475f)


```csharp
public nfloat EndAngle;
```

The EndAngle operand.

<a id="api-7721d1ec2f3a22dc"></a>

### [`CanvasOp EllipseCommand.Op`](#api-7721d1ec2f3a22dc)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-a82aba2b2cb8f78c"></a>

### [`NFloat EllipseCommand.RadiusX`](#api-a82aba2b2cb8f78c)


```csharp
public nfloat RadiusX;
```

The RadiusX operand.

<a id="api-b3c51dd9d224e6b6"></a>

### [`NFloat EllipseCommand.RadiusY`](#api-b3c51dd9d224e6b6)


```csharp
public nfloat RadiusY;
```

The RadiusY operand.

<a id="api-abc9c32b5489d67a"></a>

### [`NFloat EllipseCommand.Rotation`](#api-abc9c32b5489d67a)


```csharp
public nfloat Rotation;
```

The Rotation operand.

<a id="api-76c8d6fde7c57ef8"></a>

### [`NFloat EllipseCommand.StartAngle`](#api-76c8d6fde7c57ef8)


```csharp
public nfloat StartAngle;
```

The StartAngle operand.

<a id="api-0c7895fe10f70a0b"></a>

### [`Winding EllipseCommand.Winding`](#api-0c7895fe10f70a0b)


```csharp
public Winding Winding;
```

The Winding operand.


<a id="api-ae458a8e3e85ff1a"></a>

## `struct FillColorCommand`

Packed operands for the FillColor canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillColorCommand
{
    public CanvasOp Op;
    public Color Color;
    public FillColorCommand();
}
```

<a id="api-a8d57030a6754dd2"></a>

### [`FillColorCommand.FillColorCommand()`](#api-a8d57030a6754dd2)


```csharp
public FillColorCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-8577cfff2d676459"></a>

### [`Color FillColorCommand.Color`](#api-8577cfff2d676459)


```csharp
public Color Color;
```

The Color operand.

<a id="api-86e37848544d3f40"></a>

### [`CanvasOp FillColorCommand.Op`](#api-86e37848544d3f40)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-924d3c2ba255ac2d"></a>

## `struct FillCommand`

Packed operands for the Fill canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillCommand
{
    public CanvasOp Op;
    public FillRule Rule;
    public FillCommand();
}
```

<a id="api-569998ab1e684a76"></a>

### [`FillCommand.FillCommand()`](#api-569998ab1e684a76)


```csharp
public FillCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-f553ee387db2d3ba"></a>

### [`CanvasOp FillCommand.Op`](#api-f553ee387db2d3ba)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-11ff0cee41c60d0c"></a>

### [`FillRule FillCommand.Rule`](#api-11ff0cee41c60d0c)


```csharp
public FillRule Rule;
```

The Rule operand.


<a id="api-c793aaba0ff0b03e"></a>

## `struct FillLinearCommand`

Packed operands for the FillLinear canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillLinearCommand
{
    public CanvasOp Op;
    public Point StartPoint;
    public Point EndPoint;
    public int Length;
    public FillLinearCommand();
}
```

<a id="api-7a4c2dcf6747a78a"></a>

### [`FillLinearCommand.FillLinearCommand()`](#api-7a4c2dcf6747a78a)


```csharp
public FillLinearCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-8e484e3a3ddcc8ef"></a>

### [`Point FillLinearCommand.EndPoint`](#api-8e484e3a3ddcc8ef)


```csharp
public Point EndPoint;
```

The EndPoint operand.

<a id="api-cc5c4ffc189d057e"></a>

### [`int FillLinearCommand.Length`](#api-cc5c4ffc189d057e)


```csharp
public int Length;
```

Number of GradientStop elements stored immediately after this record.

<a id="api-2b1680c78db5adf6"></a>

### [`CanvasOp FillLinearCommand.Op`](#api-2b1680c78db5adf6)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-47d17f82bc537dad"></a>

### [`Point FillLinearCommand.StartPoint`](#api-47d17f82bc537dad)


```csharp
public Point StartPoint;
```

The StartPoint operand.


<a id="api-5e2ca78918fb8d69"></a>

## `struct FillPatternCommand`

Packed operands for the FillPattern canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillPatternCommand
{
    public CanvasOp Op;
    public ResourceRef Image;
    public PatternRepeat Repeat;
    public FillPatternCommand();
}
```

<a id="api-0a781cbb6d953bd4"></a>

### [`FillPatternCommand.FillPatternCommand()`](#api-0a781cbb6d953bd4)


```csharp
public FillPatternCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-1029dbacee20437b"></a>

### [`ResourceRef FillPatternCommand.Image`](#api-1029dbacee20437b)


```csharp
public ResourceRef Image;
```

The image object retained in the shared resource list.

<a id="api-1d88b9b0efca0f42"></a>

### [`CanvasOp FillPatternCommand.Op`](#api-1d88b9b0efca0f42)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-03848a13c3ee8ed4"></a>

### [`PatternRepeat FillPatternCommand.Repeat`](#api-03848a13c3ee8ed4)


```csharp
public PatternRepeat Repeat;
```

The Repeat operand.


<a id="api-00cbc4efdf291cb3"></a>

## `struct FillRadialCommand`

Packed operands for the FillRadial canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillRadialCommand
{
    public CanvasOp Op;
    public Point StartCenter;
    public nfloat StartRadius;
    public Point EndCenter;
    public nfloat EndRadius;
    public int Length;
    public FillRadialCommand();
}
```

<a id="api-511dede72d3dade5"></a>

### [`FillRadialCommand.FillRadialCommand()`](#api-511dede72d3dade5)


```csharp
public FillRadialCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-5520585dd671cd86"></a>

### [`Point FillRadialCommand.EndCenter`](#api-5520585dd671cd86)


```csharp
public Point EndCenter;
```

The EndCenter operand.

<a id="api-54a5c54b55de508f"></a>

### [`NFloat FillRadialCommand.EndRadius`](#api-54a5c54b55de508f)


```csharp
public nfloat EndRadius;
```

The EndRadius operand.

<a id="api-4da27cd95035c4a0"></a>

### [`int FillRadialCommand.Length`](#api-4da27cd95035c4a0)


```csharp
public int Length;
```

Number of GradientStop elements stored immediately after this record.

<a id="api-62255c912db839b9"></a>

### [`CanvasOp FillRadialCommand.Op`](#api-62255c912db839b9)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-9d009c1effc415e6"></a>

### [`Point FillRadialCommand.StartCenter`](#api-9d009c1effc415e6)


```csharp
public Point StartCenter;
```

The StartCenter operand.

<a id="api-c9d3e0fdc0337466"></a>

### [`NFloat FillRadialCommand.StartRadius`](#api-c9d3e0fdc0337466)


```csharp
public nfloat StartRadius;
```

The StartRadius operand.


<a id="api-35365cb070d1d588"></a>

## `struct FillRectCommand`

Packed operands for the FillRect canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FillRectCommand
{
    public CanvasOp Op;
    public Rect Bounds;
    public FillRectCommand();
}
```

<a id="api-0f78203db4903a0b"></a>

### [`FillRectCommand.FillRectCommand()`](#api-0f78203db4903a0b)


```csharp
public FillRectCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-7ca5143c4d0dcf94"></a>

### [`Rect FillRectCommand.Bounds`](#api-7ca5143c4d0dcf94)


```csharp
public Rect Bounds;
```

The Bounds operand.

<a id="api-0fd6e9d5a9ca3a8a"></a>

### [`CanvasOp FillRectCommand.Op`](#api-0fd6e9d5a9ca3a8a)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-7b642e907946f29f"></a>

## `struct FilterNoneCommand`

Packed operands for the FilterNone canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FilterNoneCommand
{
    public CanvasOp Op;
    public FilterNoneCommand();
}
```

<a id="api-70bfefd9e6d2553b"></a>

### [`FilterNoneCommand.FilterNoneCommand()`](#api-70bfefd9e6d2553b)


```csharp
public FilterNoneCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-68a1b78e2a68cee4"></a>

### [`CanvasOp FilterNoneCommand.Op`](#api-68a1b78e2a68cee4)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-fe9531cd3c462ef7"></a>

## `struct FontCommand`

Packed operands for the Font canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct FontCommand
{
    public CanvasOp Op;
    public ResourceRef Family;
    public nfloat Size;
    public FontWeight Weight;
    public FontStyle Style;
    public FontStretch Stretch;
    public nfloat LineHeight;
    public FontCommand();
}
```

<a id="api-7fc57c893a528744"></a>

### [`FontCommand.FontCommand()`](#api-7fc57c893a528744)


```csharp
public FontCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-92d505360259181e"></a>

### [`ResourceRef FontCommand.Family`](#api-92d505360259181e)


```csharp
public ResourceRef Family;
```

The family-name string retained in the shared resource list.

<a id="api-c2e7edcfef782b16"></a>

### [`NFloat FontCommand.LineHeight`](#api-c2e7edcfef782b16)


```csharp
public nfloat LineHeight;
```

The line height.

<a id="api-8561eeb1f8a76e83"></a>

### [`CanvasOp FontCommand.Op`](#api-8561eeb1f8a76e83)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-81bbcb9683512d55"></a>

### [`NFloat FontCommand.Size`](#api-81bbcb9683512d55)


```csharp
public nfloat Size;
```

The font size.

<a id="api-ce2ada78551465a4"></a>

### [`FontStretch FontCommand.Stretch`](#api-ce2ada78551465a4)


```csharp
public FontStretch Stretch;
```

The font stretch.

<a id="api-dbd1422efa2fff92"></a>

### [`FontStyle FontCommand.Style`](#api-dbd1422efa2fff92)


```csharp
public FontStyle Style;
```

The font style, stored inline without boxing.

<a id="api-7e685887233d37ae"></a>

### [`FontWeight FontCommand.Weight`](#api-7e685887233d37ae)


```csharp
public FontWeight Weight;
```

The font weight.


<a id="api-0ccae8c594c8a5a8"></a>

## `struct GlobalAlphaCommand`

Packed operands for the GlobalAlpha canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct GlobalAlphaCommand
{
    public CanvasOp Op;
    public nfloat Value;
    public GlobalAlphaCommand();
}
```

<a id="api-2254855d329e8549"></a>

### [`GlobalAlphaCommand.GlobalAlphaCommand()`](#api-2254855d329e8549)


```csharp
public GlobalAlphaCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-1f5be4362e34a511"></a>

### [`CanvasOp GlobalAlphaCommand.Op`](#api-1f5be4362e34a511)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-da12c670d18522a4"></a>

### [`NFloat GlobalAlphaCommand.Value`](#api-da12c670d18522a4)


```csharp
public nfloat Value;
```

The Value operand.


<a id="api-1c7adedb960424bc"></a>

## `struct ImageCommand`

Packed operands for the Image canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ImageCommand
{
    public CanvasOp Op;
    public ResourceRef Image;
    public Rect Destination;
    public nfloat Opacity;
    public ImageCommand();
}
```

<a id="api-c531460ac7ad3c54"></a>

### [`ImageCommand.ImageCommand()`](#api-c531460ac7ad3c54)


```csharp
public ImageCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-509a1b2a279e96c8"></a>

### [`Rect ImageCommand.Destination`](#api-509a1b2a279e96c8)


```csharp
public Rect Destination;
```

The Destination operand.

<a id="api-096e1173a7a13340"></a>

### [`ResourceRef ImageCommand.Image`](#api-096e1173a7a13340)


```csharp
public ResourceRef Image;
```

The image object retained in the shared resource list.

<a id="api-f80091070ce1e2aa"></a>

### [`CanvasOp ImageCommand.Op`](#api-f80091070ce1e2aa)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-be173171da0fb7e8"></a>

### [`NFloat ImageCommand.Opacity`](#api-be173171da0fb7e8)


```csharp
public nfloat Opacity;
```

The Opacity operand.


<a id="api-86f7c7631d2eb806"></a>

## `struct ImageCropCommand`

Packed operands for the ImageCrop canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ImageCropCommand
{
    public CanvasOp Op;
    public ResourceRef Image;
    public Rect Source;
    public Rect Destination;
    public nfloat Opacity;
    public ImageCropCommand();
}
```

<a id="api-2e2057fbcb7b9ba1"></a>

### [`ImageCropCommand.ImageCropCommand()`](#api-2e2057fbcb7b9ba1)


```csharp
public ImageCropCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-cc640f7e3f12cc39"></a>

### [`Rect ImageCropCommand.Destination`](#api-cc640f7e3f12cc39)


```csharp
public Rect Destination;
```

The Destination operand.

<a id="api-f89ae2b244fcbbea"></a>

### [`ResourceRef ImageCropCommand.Image`](#api-f89ae2b244fcbbea)


```csharp
public ResourceRef Image;
```

The image object retained in the shared resource list.

<a id="api-4920c0ec0776390a"></a>

### [`CanvasOp ImageCropCommand.Op`](#api-4920c0ec0776390a)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-19d45df4364edc3d"></a>

### [`NFloat ImageCropCommand.Opacity`](#api-19d45df4364edc3d)


```csharp
public nfloat Opacity;
```

The Opacity operand.

<a id="api-2eb06c35259e240b"></a>

### [`Rect ImageCropCommand.Source`](#api-2eb06c35259e240b)


```csharp
public Rect Source;
```

The Source operand.


<a id="api-83116b0c288c703e"></a>

## `struct LineCapCommand`

Packed operands for the LineCap canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LineCapCommand
{
    public CanvasOp Op;
    public LineCap Value;
    public LineCapCommand();
}
```

<a id="api-348d2705a46fcf83"></a>

### [`LineCapCommand.LineCapCommand()`](#api-348d2705a46fcf83)


```csharp
public LineCapCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-4a7f9825752263da"></a>

### [`CanvasOp LineCapCommand.Op`](#api-4a7f9825752263da)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-3cdd5e66f832790c"></a>

### [`LineCap LineCapCommand.Value`](#api-3cdd5e66f832790c)


```csharp
public LineCap Value;
```

The Value operand.


<a id="api-b9e87aac935526e1"></a>

## `struct LineDashOffsetCommand`

Packed operands for the LineDashOffset canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LineDashOffsetCommand
{
    public CanvasOp Op;
    public nfloat Value;
    public LineDashOffsetCommand();
}
```

<a id="api-dc94d02ebd2b8c15"></a>

### [`LineDashOffsetCommand.LineDashOffsetCommand()`](#api-dc94d02ebd2b8c15)


```csharp
public LineDashOffsetCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-f37491ccaf25cd93"></a>

### [`CanvasOp LineDashOffsetCommand.Op`](#api-f37491ccaf25cd93)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-e95ae26543d9b626"></a>

### [`NFloat LineDashOffsetCommand.Value`](#api-e95ae26543d9b626)


```csharp
public nfloat Value;
```

The Value operand.


<a id="api-56385e835d3149c1"></a>

## `struct LineJoinCommand`

Packed operands for the LineJoin canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LineJoinCommand
{
    public CanvasOp Op;
    public LineJoin Value;
    public LineJoinCommand();
}
```

<a id="api-5d9c2a61fdb4bce6"></a>

### [`LineJoinCommand.LineJoinCommand()`](#api-5d9c2a61fdb4bce6)


```csharp
public LineJoinCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-1e6b00c7cd85c2b1"></a>

### [`CanvasOp LineJoinCommand.Op`](#api-1e6b00c7cd85c2b1)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-9443448109e5e0f7"></a>

### [`LineJoin LineJoinCommand.Value`](#api-9443448109e5e0f7)


```csharp
public LineJoin Value;
```

The Value operand.


<a id="api-b622da69becb10e4"></a>

## `struct LineToCommand`

Packed operands for the LineTo canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LineToCommand
{
    public CanvasOp Op;
    public Point Position;
    public LineToCommand();
}
```

<a id="api-6521ab5384f8cdd7"></a>

### [`LineToCommand.LineToCommand()`](#api-6521ab5384f8cdd7)


```csharp
public LineToCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-9bca798c4b95ff2c"></a>

### [`CanvasOp LineToCommand.Op`](#api-9bca798c4b95ff2c)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-10173e7449c7aec8"></a>

### [`Point LineToCommand.Position`](#api-10173e7449c7aec8)


```csharp
public Point Position;
```

The Position operand.


<a id="api-0fad2d55a581ce80"></a>

## `struct LineWidthCommand`

Packed operands for the LineWidth canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct LineWidthCommand
{
    public CanvasOp Op;
    public nfloat Value;
    public LineWidthCommand();
}
```

<a id="api-ecc06942a89775ce"></a>

### [`LineWidthCommand.LineWidthCommand()`](#api-ecc06942a89775ce)


```csharp
public LineWidthCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-4d6e203b175495f8"></a>

### [`CanvasOp LineWidthCommand.Op`](#api-4d6e203b175495f8)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-105bb3c3db765d00"></a>

### [`NFloat LineWidthCommand.Value`](#api-105bb3c3db765d00)


```csharp
public nfloat Value;
```

The Value operand.


<a id="api-533a52cff215bc91"></a>

## `struct MiterLimitCommand`

Packed operands for the MiterLimit canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct MiterLimitCommand
{
    public CanvasOp Op;
    public nfloat Value;
    public MiterLimitCommand();
}
```

<a id="api-6bd849be04e705c8"></a>

### [`MiterLimitCommand.MiterLimitCommand()`](#api-6bd849be04e705c8)


```csharp
public MiterLimitCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-86ad035ccbeca8b2"></a>

### [`CanvasOp MiterLimitCommand.Op`](#api-86ad035ccbeca8b2)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-1b3b977464279cce"></a>

### [`NFloat MiterLimitCommand.Value`](#api-1b3b977464279cce)


```csharp
public nfloat Value;
```

The Value operand.


<a id="api-e114eb6a373df0a8"></a>

## `struct MoveToCommand`

Packed operands for the MoveTo canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct MoveToCommand
{
    public CanvasOp Op;
    public Point Position;
    public MoveToCommand();
}
```

<a id="api-cbf6ba314071ee40"></a>

### [`MoveToCommand.MoveToCommand()`](#api-cbf6ba314071ee40)


```csharp
public MoveToCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-896035fb73a488de"></a>

### [`CanvasOp MoveToCommand.Op`](#api-896035fb73a488de)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-79a9c19f6ffcf744"></a>

### [`Point MoveToCommand.Position`](#api-79a9c19f6ffcf744)


```csharp
public Point Position;
```

The Position operand.


<a id="api-617d57b2137c1718"></a>

## `struct QuadraticCommand`

Packed operands for the Quadratic canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct QuadraticCommand
{
    public CanvasOp Op;
    public Point Control;
    public Point End;
    public QuadraticCommand();
}
```

<a id="api-96a99be2ebb35333"></a>

### [`QuadraticCommand.QuadraticCommand()`](#api-96a99be2ebb35333)


```csharp
public QuadraticCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-06a81ce61c8de95a"></a>

### [`Point QuadraticCommand.Control`](#api-06a81ce61c8de95a)


```csharp
public Point Control;
```

The Control operand.

<a id="api-ed80308b1ef73ad1"></a>

### [`Point QuadraticCommand.End`](#api-ed80308b1ef73ad1)


```csharp
public Point End;
```

The End operand.

<a id="api-e7efca74f1fc2629"></a>

### [`CanvasOp QuadraticCommand.Op`](#api-e7efca74f1fc2629)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-da2261b6d3753b08"></a>

## `struct RectCommand`

Packed operands for the Rect canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RectCommand
{
    public CanvasOp Op;
    public Rect Bounds;
    public RectCommand();
}
```

<a id="api-e46812b1226da0fc"></a>

### [`RectCommand.RectCommand()`](#api-e46812b1226da0fc)


```csharp
public RectCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-57035341f98c7be7"></a>

### [`Rect RectCommand.Bounds`](#api-57035341f98c7be7)


```csharp
public Rect Bounds;
```

The Bounds operand.

<a id="api-68004315fe64189a"></a>

### [`CanvasOp RectCommand.Op`](#api-68004315fe64189a)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-275108f64f8fefc4"></a>

## `struct RestoreCommand`

Packed operands for the Restore canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RestoreCommand
{
    public CanvasOp Op;
    public RestoreCommand();
}
```

<a id="api-7d421ddd068647c2"></a>

### [`RestoreCommand.RestoreCommand()`](#api-7d421ddd068647c2)


```csharp
public RestoreCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-4835291a60cf875e"></a>

### [`CanvasOp RestoreCommand.Op`](#api-4835291a60cf875e)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-dc26c7fe7f22be4e"></a>

## `struct RotateCommand`

Packed operands for the Rotate canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RotateCommand
{
    public CanvasOp Op;
    public nfloat Angle;
    public RotateCommand();
}
```

<a id="api-0c4c423f3f5f5fd1"></a>

### [`RotateCommand.RotateCommand()`](#api-0c4c423f3f5f5fd1)


```csharp
public RotateCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-9dfeab7f0eed9565"></a>

### [`NFloat RotateCommand.Angle`](#api-9dfeab7f0eed9565)


```csharp
public nfloat Angle;
```

The Angle operand.

<a id="api-38e7bbea7ebbe7fc"></a>

### [`CanvasOp RotateCommand.Op`](#api-38e7bbea7ebbe7fc)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-95035a88daede90f"></a>

## `struct RoundRectCommand`

Packed operands for the RoundRect canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RoundRectCommand
{
    public CanvasOp Op;
    public Rect Bounds;
    public CornerRadius Corners;
    public RoundRectCommand();
}
```

<a id="api-f969fe8434009c5d"></a>

### [`RoundRectCommand.RoundRectCommand()`](#api-f969fe8434009c5d)


```csharp
public RoundRectCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-7db2ad3f9e0fcb0c"></a>

### [`Rect RoundRectCommand.Bounds`](#api-7db2ad3f9e0fcb0c)


```csharp
public Rect Bounds;
```

The Bounds operand.

<a id="api-0bc35536244ce295"></a>

### [`CornerRadius RoundRectCommand.Corners`](#api-0bc35536244ce295)


```csharp
public CornerRadius Corners;
```

The Corners operand.

<a id="api-8d7d1fd606b93148"></a>

### [`CanvasOp RoundRectCommand.Op`](#api-8d7d1fd606b93148)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-beca8c33f471588d"></a>

## `struct SaveCommand`

Packed operands for the Save canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SaveCommand
{
    public CanvasOp Op;
    public SaveCommand();
}
```

<a id="api-b7fc0f6c848d7311"></a>

### [`SaveCommand.SaveCommand()`](#api-b7fc0f6c848d7311)


```csharp
public SaveCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-6b2a33aae7e41435"></a>

### [`CanvasOp SaveCommand.Op`](#api-6b2a33aae7e41435)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-324bac1d02312363"></a>

## `struct ScaleCommand`

Packed operands for the Scale canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct ScaleCommand
{
    public CanvasOp Op;
    public Vector Value;
    public ScaleCommand();
}
```

<a id="api-1b2afea850523345"></a>

### [`ScaleCommand.ScaleCommand()`](#api-1b2afea850523345)


```csharp
public ScaleCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-91895c1ae9e11365"></a>

### [`CanvasOp ScaleCommand.Op`](#api-91895c1ae9e11365)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-650a8c050222c476"></a>

### [`Vector ScaleCommand.Value`](#api-650a8c050222c476)


```csharp
public Vector Value;
```

The Value operand.


<a id="api-b857c9d579dd2c02"></a>

## `struct SetTransformCommand`

Packed operands for the SetTransform canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SetTransformCommand
{
    public CanvasOp Op;
    public AffineTransform Value;
    public SetTransformCommand();
}
```

<a id="api-c459c3c5f6574f96"></a>

### [`SetTransformCommand.SetTransformCommand()`](#api-c459c3c5f6574f96)


```csharp
public SetTransformCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-d7afde4be6c31d87"></a>

### [`CanvasOp SetTransformCommand.Op`](#api-d7afde4be6c31d87)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-ddbb094df587703e"></a>

### [`AffineTransform SetTransformCommand.Value`](#api-ddbb094df587703e)


```csharp
public AffineTransform Value;
```

The Value operand.


<a id="api-f423dff6638d9a80"></a>

## `struct StrokeColorCommand`

Packed operands for the StrokeColor canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokeColorCommand
{
    public CanvasOp Op;
    public Color Color;
    public StrokeColorCommand();
}
```

<a id="api-3f28fe06c3f09487"></a>

### [`StrokeColorCommand.StrokeColorCommand()`](#api-3f28fe06c3f09487)


```csharp
public StrokeColorCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-649289e29b1117b9"></a>

### [`Color StrokeColorCommand.Color`](#api-649289e29b1117b9)


```csharp
public Color Color;
```

The Color operand.

<a id="api-3aa418c4e350a4c8"></a>

### [`CanvasOp StrokeColorCommand.Op`](#api-3aa418c4e350a4c8)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-4409ed576dcb639c"></a>

## `struct StrokeCommand`

Packed operands for the Stroke canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokeCommand
{
    public CanvasOp Op;
    public StrokeCommand();
}
```

<a id="api-29fe1e544f23df3b"></a>

### [`StrokeCommand.StrokeCommand()`](#api-29fe1e544f23df3b)


```csharp
public StrokeCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-6f893ef5cc27cc92"></a>

### [`CanvasOp StrokeCommand.Op`](#api-6f893ef5cc27cc92)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-0094e3b8fd555bbd"></a>

## `struct StrokeLinearCommand`

Packed operands for the StrokeLinear canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokeLinearCommand
{
    public CanvasOp Op;
    public Point StartPoint;
    public Point EndPoint;
    public int Length;
    public StrokeLinearCommand();
}
```

<a id="api-a756fd6e9891febc"></a>

### [`StrokeLinearCommand.StrokeLinearCommand()`](#api-a756fd6e9891febc)


```csharp
public StrokeLinearCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-16a0595cec2c71de"></a>

### [`Point StrokeLinearCommand.EndPoint`](#api-16a0595cec2c71de)


```csharp
public Point EndPoint;
```

The EndPoint operand.

<a id="api-618d7b44c0150f36"></a>

### [`int StrokeLinearCommand.Length`](#api-618d7b44c0150f36)


```csharp
public int Length;
```

Number of GradientStop elements stored immediately after this record.

<a id="api-0c55409f1b8d794d"></a>

### [`CanvasOp StrokeLinearCommand.Op`](#api-0c55409f1b8d794d)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-9ebc9ab8ded0db66"></a>

### [`Point StrokeLinearCommand.StartPoint`](#api-9ebc9ab8ded0db66)


```csharp
public Point StartPoint;
```

The StartPoint operand.


<a id="api-e318ded943d946f8"></a>

## `struct StrokePatternCommand`

Packed operands for the StrokePattern canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokePatternCommand
{
    public CanvasOp Op;
    public ResourceRef Image;
    public PatternRepeat Repeat;
    public StrokePatternCommand();
}
```

<a id="api-dca6597c9612a8d6"></a>

### [`StrokePatternCommand.StrokePatternCommand()`](#api-dca6597c9612a8d6)


```csharp
public StrokePatternCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-4ae7e1584a5fe0d4"></a>

### [`ResourceRef StrokePatternCommand.Image`](#api-4ae7e1584a5fe0d4)


```csharp
public ResourceRef Image;
```

The image object retained in the shared resource list.

<a id="api-cc4279b5270ca2dd"></a>

### [`CanvasOp StrokePatternCommand.Op`](#api-cc4279b5270ca2dd)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-9775fb4858c961cd"></a>

### [`PatternRepeat StrokePatternCommand.Repeat`](#api-9775fb4858c961cd)


```csharp
public PatternRepeat Repeat;
```

The Repeat operand.


<a id="api-bf3945c1acddfd82"></a>

## `struct StrokeRadialCommand`

Packed operands for the StrokeRadial canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokeRadialCommand
{
    public CanvasOp Op;
    public Point StartCenter;
    public nfloat StartRadius;
    public Point EndCenter;
    public nfloat EndRadius;
    public int Length;
    public StrokeRadialCommand();
}
```

<a id="api-07cdb7539caa1b04"></a>

### [`StrokeRadialCommand.StrokeRadialCommand()`](#api-07cdb7539caa1b04)


```csharp
public StrokeRadialCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-b64df3bab64e07a1"></a>

### [`Point StrokeRadialCommand.EndCenter`](#api-b64df3bab64e07a1)


```csharp
public Point EndCenter;
```

The EndCenter operand.

<a id="api-838ad0d099132e58"></a>

### [`NFloat StrokeRadialCommand.EndRadius`](#api-838ad0d099132e58)


```csharp
public nfloat EndRadius;
```

The EndRadius operand.

<a id="api-1e60bfa37cbced0e"></a>

### [`int StrokeRadialCommand.Length`](#api-1e60bfa37cbced0e)


```csharp
public int Length;
```

Number of GradientStop elements stored immediately after this record.

<a id="api-50278379dc50cf6b"></a>

### [`CanvasOp StrokeRadialCommand.Op`](#api-50278379dc50cf6b)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-1dab0090debd88af"></a>

### [`Point StrokeRadialCommand.StartCenter`](#api-1dab0090debd88af)


```csharp
public Point StartCenter;
```

The StartCenter operand.

<a id="api-be1acb4049a6a379"></a>

### [`NFloat StrokeRadialCommand.StartRadius`](#api-be1acb4049a6a379)


```csharp
public nfloat StartRadius;
```

The StartRadius operand.


<a id="api-10efb6f562aee719"></a>

## `struct StrokeRectCommand`

Packed operands for the StrokeRect canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct StrokeRectCommand
{
    public CanvasOp Op;
    public Rect Bounds;
    public StrokeRectCommand();
}
```

<a id="api-a5b68dfabd76f055"></a>

### [`StrokeRectCommand.StrokeRectCommand()`](#api-a5b68dfabd76f055)


```csharp
public StrokeRectCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-e1d2ce43414b7ae4"></a>

### [`Rect StrokeRectCommand.Bounds`](#api-e1d2ce43414b7ae4)


```csharp
public Rect Bounds;
```

The Bounds operand.

<a id="api-a94bc9d40adfcb2f"></a>

### [`CanvasOp StrokeRectCommand.Op`](#api-a94bc9d40adfcb2f)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.


<a id="api-623c0239dfbdb91d"></a>

## `struct SymbolCommand`

A retained reference to an immutable symbol definition.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct SymbolCommand
{
    public CanvasOp Op;
    public ResourceRef Content;
    public SymbolCommand();
}
```

<a id="api-db09c6f59920ab68"></a>

### [`SymbolCommand.SymbolCommand()`](#api-db09c6f59920ab68)


```csharp
public SymbolCommand();
```

Initializes the operation.

<a id="api-27b60d6bb7a92ea4"></a>

### [`ResourceRef SymbolCommand.Content`](#api-27b60d6bb7a92ea4)


```csharp
public ResourceRef Content;
```

SymbolContent in the buffer&#39;s resource table.

<a id="api-cd98899875077372"></a>

### [`CanvasOp SymbolCommand.Op`](#api-cd98899875077372)


```csharp
public CanvasOp Op;
```

Operation discriminator.


<a id="api-4a57257a0f1911c7"></a>

## `struct TextAlignCommand`

Packed operands for the TextAlign canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TextAlignCommand
{
    public CanvasOp Op;
    public TextAlign Value;
    public TextAlignCommand();
}
```

<a id="api-8b7a6e31d3ed9df2"></a>

### [`TextAlignCommand.TextAlignCommand()`](#api-8b7a6e31d3ed9df2)


```csharp
public TextAlignCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-d4095294f2407544"></a>

### [`CanvasOp TextAlignCommand.Op`](#api-d4095294f2407544)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-79cea05963d7c18e"></a>

### [`TextAlign TextAlignCommand.Value`](#api-79cea05963d7c18e)


```csharp
public TextAlign Value;
```

The Value operand.


<a id="api-7c4effcb230b2776"></a>

## `struct TextBaselineCommand`

Packed operands for the TextBaseline canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TextBaselineCommand
{
    public CanvasOp Op;
    public TextBaseline Value;
    public TextBaselineCommand();
}
```

<a id="api-5516bc0d9b51a84e"></a>

### [`TextBaselineCommand.TextBaselineCommand()`](#api-5516bc0d9b51a84e)


```csharp
public TextBaselineCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-f9c04c815940cb2b"></a>

### [`CanvasOp TextBaselineCommand.Op`](#api-f9c04c815940cb2b)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-66234d50d57e667b"></a>

### [`TextBaseline TextBaselineCommand.Value`](#api-66234d50d57e667b)


```csharp
public TextBaseline Value;
```

The Value operand.


<a id="api-23e55f07cdf5540f"></a>

## `struct TextCommand`

Draws text copied from a span into the binary stream immediately after this record.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TextCommand
{
    public CanvasOp Op;
    public Point Position;
    public int Length;
    public TextCommand();
}
```

<a id="api-3f50a393f3f07c1d"></a>

### [`TextCommand.TextCommand()`](#api-3f50a393f3f07c1d)


```csharp
public TextCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-9ede03ee7ab92c4f"></a>

### [`int TextCommand.Length`](#api-9ede03ee7ab92c4f)


```csharp
public int Length;
```

Number of char elements stored immediately after this record.

<a id="api-76a7122f206a5eab"></a>

### [`CanvasOp TextCommand.Op`](#api-76a7122f206a5eab)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-21bda8199d1d02f0"></a>

### [`Point TextCommand.Position`](#api-21bda8199d1d02f0)


```csharp
public Point Position;
```

The Position operand.


<a id="api-aad85d092b4f3725"></a>

## `struct TextResourceCommand`

Draws a string retained by reference in the shared resource list.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TextResourceCommand
{
    public CanvasOp Op;
    public Point Position;
    public ResourceRef Text;
    public TextResourceCommand();
}
```

<a id="api-ab1650bab190bf17"></a>

### [`TextResourceCommand.TextResourceCommand()`](#api-ab1650bab190bf17)


```csharp
public TextResourceCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-ab300e41cd53df0f"></a>

### [`CanvasOp TextResourceCommand.Op`](#api-ab300e41cd53df0f)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-538d18a42dc4651f"></a>

### [`Point TextResourceCommand.Position`](#api-538d18a42dc4651f)


```csharp
public Point Position;
```

The text drawing position.

<a id="api-95629257acfcd38f"></a>

### [`ResourceRef TextResourceCommand.Text`](#api-95629257acfcd38f)


```csharp
public ResourceRef Text;
```

The retained string. Span-based text uses TextCommand instead.


<a id="api-5a4915d76b163734"></a>

## `struct TransformCommand`

Packed operands for the Transform canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TransformCommand
{
    public CanvasOp Op;
    public AffineTransform Value;
    public TransformCommand();
}
```

<a id="api-bc04cafa73d178cb"></a>

### [`TransformCommand.TransformCommand()`](#api-bc04cafa73d178cb)


```csharp
public TransformCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-486df0add65f633e"></a>

### [`CanvasOp TransformCommand.Op`](#api-486df0add65f633e)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-25fb91ec0e485c93"></a>

### [`AffineTransform TransformCommand.Value`](#api-25fb91ec0e485c93)


```csharp
public AffineTransform Value;
```

The Value operand.


<a id="api-d0347b57234d6c3e"></a>

## `struct TranslateCommand`

Packed operands for the Translate canvas operation.

```csharp
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct TranslateCommand
{
    public CanvasOp Op;
    public Vector Value;
    public TranslateCommand();
}
```

<a id="api-1ed49b48e69b38ea"></a>

### [`TranslateCommand.TranslateCommand()`](#api-1ed49b48e69b38ea)


```csharp
public TranslateCommand();
```

Initializes the discriminator and zeroes the operands.

<a id="api-b36c483c7fe2b183"></a>

### [`CanvasOp TranslateCommand.Op`](#api-b36c483c7fe2b183)


```csharp
public CanvasOp Op;
```

The command discriminator, at byte offset zero.

<a id="api-9ba1d9f099a2dffe"></a>

### [`Vector TranslateCommand.Value`](#api-9ba1d9f099a2dffe)


```csharp
public Vector Value;
```

The Value operand.

