• Lua non Corrected Image ( Need help in RP )
    0 replies, posted
Hello everybody! I'm doing a RP project, and I really need your help. So, here's problem. Sorry for my bad English, i'm living in Ukraine, okay? [CODE]hook.Add( "Think", "BM_Clients_Key", function() gui.EnableScreenClicker( input.IsKeyDown( KEY_LALT ) ) -- This to able close window with alt key end ) -- Frame MainFrame = vgui.Create( "DFrame" ) MainFrame:SetSize( 1360, 768 ) MainFrame:Center() -- Load post process effect thumbnail local postprocess = vgui.Create( "DImage", MainFrame ) postprocess:SetSize( 32, 32 ) -- Image Size postprocess:Center() postprocess:SetImage( "vanderagsn/Menu/test.png" ) -- Any image here [/CODE] When i set this png image to 32x32 pixels - no problem here. Here's Screen [IMG]https://dl.dropboxusercontent.com/s/151t7u627jk7t2d/2017-01-01_23-14-43.png[/IMG] But when i change pixels to 64x32 in image & code [CODE]postprocess:SetSize( 64, 32 )[/CODE] - this happens [IMG]https://dl.dropboxusercontent.com/s/ks41y281lclc89o/2017-01-01_23-18-56.png[/IMG] What could be problem? The picture will be normal only if the aspect ratio is exactly 1 to 1, namely the square. But when i change picture size / size in code like 64x32, 144x40, etc - The picture does not look good [editline]2nd January 2017[/editline] Help please? Why facepunch ignore me? D:
Sorry, you need to Log In to post a reply to this thread.