scaling an image according to screen resolution

Blitz3D Forums/Blitz3D Beginners Area/scaling an image according to screen resolution

would this work?:
ScaleX# = Graphicswidth() / displaywidth
ScaleY# = graphicsheight() / displayheight

(displaywidth and height are variables used globally for graphics so that the same display check isn't preformed each time a new window is created)