DX9ToolsR4 - Created by: X

Camera.AspectRatio Property

Gets / Sets the cameras aspect ratio.

[Visual Basic]
Public Property AspectRatio As Single
[C#]
public float AspectRatio {get; set;}

Remarks

Typically if you were using a form to render your graphics, you would use the fallowing to calculate an acurate aspect ratio.

     Camera.AspectRatio = Form.ClientSize.Width / Form.ClientSize.Height
 

See Also

Camera Class | CBX.Libs.DX9ToolsR4 Namespace