xTravax Posted September 2, 2014 Share Posted September 2, 2014 hello im just trying to use stupid gui image function which never works for me instead of using dxDrawImage 323402340923403 times, and ofcourse my 32x32 pixel picture is being drawn with size of 1920x1080 stupidWindow = guiCreateWindow ( 0, 0, 1, 1, " ", true ) avatar = guiCreateStaticImage(0.3,0.3,32,32,"files/images/avatar.png",true,stupidWindow) i am not doing anything wrong,there is just one background image which i HAD to draw with dx functions because stupid gui functions dont do anything right considering images does anyone have a clue why is my 32x32 pixel image being drawn on 1920x1080 resolution size? Link to comment
Et-win Posted September 2, 2014 Share Posted September 2, 2014 That's because you are giving up '32' in the value that has to be between 0 and 1, lol. Do some math, or just simply set 'true' to 'false' to use actual pixels. (Trust me, that's easier) Link to comment
xTravax Posted September 2, 2014 Author Share Posted September 2, 2014 (edited) nvm thanks i havent checked the wiki well edit: i will try your math calculations,thanks Edited September 2, 2014 by Guest Link to comment
Et-win Posted September 2, 2014 Share Posted September 2, 2014 I never had any bug with it? Anyway, you have to convert the pixel size of the image (32x32 pixels) to a value that is between 0 and 1. So try this: 32/100 (My math is horrible, so it can be wrong ) *Cough* Edited. Link to comment
xTravax Posted September 2, 2014 Author Share Posted September 2, 2014 i tried switching it so its not only between 0 and 1, but when i put 32,32 its still not that size do you know why? Link to comment
Et-win Posted September 2, 2014 Share Posted September 2, 2014 Do the same to the window. Link to comment
xTravax Posted September 2, 2014 Author Share Posted September 2, 2014 alright thanks Link to comment
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