Hi,
I'm new to AppGameKit and I'm trying to draw to an image which then gets converted into a sprite. However, the sprites are appearing stretched vertically.
As an example:
SetWindowSize(1920, 1080, 0)
SetVirtualResolution(1920, 1080)
image = CreateRenderImage(256, 256, 0, 0)
SetRenderToImage(image, 0)
DrawEllipse(128.0, 128.0, 128.0, 128.0, MakeColor(255, 0, 0), MakeColor(255, 0, 0), 1)
sprite = CreateSprite(image)
SetRenderToScreen()
do
Sync()
loop
The ellipse is neither a perfect circle, nor is the size accurate to that specified (the rendered sprite is 35x61 pixels when taking a screenshot and measuring). SetDisplayAspect has no effect (as expected since SetVirtualResolution is used).
Can someone please help with what I'm missing?
Thanks.