---
title: "Animation (_Animation class)"
canonical: "https://docs.cuesystem.com/space/CVCHELP/514719745/Animation%20(_Animation%20class)"
format: markdown
---
> Macro (toc)

---

# GetFrameCount

This function returns several frames. 

#### Syntax 

```visualbasic
Function GetFrameCount() As Long
```

#### Return value 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the number of frames. 

# GetFrameHeight

This function returns the height of the desired frame in pixels. 

#### Syntax 

```visualbasic
Function GetFrameHeight(frameindex As Long) As Long
```

#### Parameters 

frameindex 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is an index of the frame to get the height. 

#### Return value 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the height of the frame in pixels. 

# GetFrameRate

This function returns a default number of frames per second. That means the reciprocal value of the **GetPeriodTime** function. 

#### Syntax 

```visualbasic
Function GetFrameRate() As Double
```

#### Return value 

<u>[Double](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double)</u> It is the default number of frames per second. 

# GetFrameWidth

This function returns the width of the desired frame in pixels. 

#### Syntax 

```visualbasic
Function GetFrameWidth(frameindex As Long) As Long
```

#### Parameters 

frameindex 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is an index of the frame to get the width. 

#### Return value 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the width of the frame in pixels. 

# GetHeight

This function returns a height of the highest frame in pixels. 

#### Syntax 

```visualbasic
Function GetHeight() As Long
```

#### Return value 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the height of the highest frame in pixels. 

# GetPeriodTime

This function returns a default frame period. This number can be used as a parameter of the **StartTimer** function, which will affect the viewing of animation frames. 

#### Syntax 

```visualbasic
Function GetPeriodTime() As Time
```

#### Return value 

<u>[Time](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Time)</u> It is the default frame period. 

# GetWidth

This function returns the width of the widest frame in pixels. 

#### Syntax 

```visualbasic
Function GetFrameWidth() As Long
```

#### Return value 

<u>[Long](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Long)</u> It is the width of the widest frame in pixels.