AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkApplication.SetVirtualResolution Method

The default approach for the coordinate system in AGK is to use a percentage based system where 0,0 represents the top left corner and 100,100 the bottom right. The alternative approach is to treat the platform with a fixed resolution e.g. 320 x 480. Any platforms that don't match this resolution will be scaled to fit as much as possible with black borders where necessary.

Syntax
Pascal
procedure SetVirtualResolution(const Width: Integer; const Height: Integer);
Parameters 
Description 
const Width: Integer 
the number of units to use across the width of the rendering area Height:the number of units to use across the height of the rendering area 
Copyright (c) 2012. All rights reserved.