joao1234 Posted March 26, 2013 Posted March 26, 2013 Hey guys, how can i make na image fit all screen in all resolutions??
EstrategiaGTA Posted March 26, 2013 Posted March 26, 2013 guiGetScreenSize guiCreateStaticImage guiSetVisible
Moderators IIYAMA Posted March 26, 2013 Moderators Posted March 26, 2013 By using factors, you have to keep in mind that there are differed aspect ratio's. (16:9)_(16:10)_(15:9)_(4:3) The best quality is making it at 1920x1080. But I will recommend to create the picture at 1024 x 768, to reduce the file size. local x,y = guiGetScreenSize () local factor = x / 1024 local newY = y*factor addEventHandler("onClientRender", getRootElement(), function () dxDrawImage ( 0, 0, x, newY, '___.png') end) The picture will be bigger then the screen, but it won't be pressed together. @EstrategiaGTA Froze me? (chaos.de)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now