# SetVideoDimensions

## Description

Sets the width, height, and position of the video whilst it is playing. Can be called before or during playback. The coordinates are in AGK screen coordinates based on your chosen virtual resolution. The aspect ratio is not preserved and will be stretched to fit your chosen dimensions. To find the actual size of the video in pixels use GetVideoWidth and GetVideoHeight. An exception to the stretching is Windows which will always keep the aspect ratio of the original video and add black borders where necessary.

## Definition

SetVideoDimensions( x, y, width, height )

void agk::SetVideoDimensions( float x, float y, float width, float height )

## Parameters

- x - The x coordinate to position the top left corner of the video
- y - The y coordinate to position the top left corner of the video
- width - The width to display the video
- height - The height to display the video