11-15-2022, 01:25 AM
(11-15-2022, 12:32 AM)bplus Wrote: Now using actual size of image, center it onto screen:With you so far...
Code: (Select All)Screen _NewImage(800, 600, 32) ' screen width, height, 32 is _RGBA colors
_Delay .2
Logo& = _LoadImage("qb64pe.png")
' put image, the actual size, into the middle of our screen
_PutImage ((_Width - .5 * _Width(Logo&)) / 2, (_Height - .5 * _Height(Logo&)) / 2), Logo&, 0
Notice: if you don't specify the bottom right corner the actual image rectangle size is used. Above I just told _PutImage the (Left, Top) corner.
Whoa pretty small! Have to do something about that...
![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, W.A.) ![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/
![Big Grin Big Grin](https://qb64phoenix.com/forum/images/smilies/biggrin.png)
Please visit my Website at: http://oldendayskids.blogspot.com/