1izumrud Posted April 8, 2012 Author Share Posted April 8, 2012 :sad: Hi, I'm trying to do some image format. PNG because it weighs less and looks more beautiful but that's a problem. I changed the code to Eclipse, but still gives an error when compiling, such as can not find a picture GUI, it only changed the way it should be. help. changed the code in this section.```mMain.picInventory.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\inventory.jpg") frmMain.picCharacter.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\character.jpg") frmMain.picSpells.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\skills.jpg") frmMain.picOptions.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\options.jpg") frmMain.picParty.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\party.jpg") frmMain.picItemDesc.Picture = LoadPicture(App.Path & "\data files\graphics\gui\main\description_item.jpg")``` :mad: but it did not help Link to comment Share on other sites More sharing options...
Baron Posted April 8, 2012 Share Posted April 8, 2012 the .LoadPicture can not be used with .pngto use .png must write a lot more code. Link to comment Share on other sites More sharing options...
1izumrud Posted April 8, 2012 Author Share Posted April 8, 2012 but this code is here? Link to comment Share on other sites More sharing options...
Baron Posted April 8, 2012 Share Posted April 8, 2012 yes but VB6 is natively incompatible with .pngVB6 + PNG = :mad: Link to comment Share on other sites More sharing options...
1izumrud Posted April 8, 2012 Author Share Posted April 8, 2012 then what is the best option to use the format? Hello from Russia:P just a jpg and bmp smeared Link to comment Share on other sites More sharing options...
Baron Posted April 8, 2012 Share Posted April 8, 2012 No good tutorial for doing so.Rewrite the client in another computer language was my solution. Link to comment Share on other sites More sharing options...
1izumrud Posted April 8, 2012 Author Share Posted April 8, 2012 oh have to leave the jpg. although it weighs a lot Link to comment Share on other sites More sharing options...
Baron Posted April 8, 2012 Share Posted April 8, 2012 .jpg is smaller than .png most the time..png includes alpha and has perfect colours, jpg does not. .png will be bigger. Link to comment Share on other sites More sharing options...
RyokuHasu Posted April 8, 2012 Share Posted April 8, 2012 if you use .jpg you image quality will go down a shit-tonI would suggest using 24 bit .bmp Yes its LARGE uncompressed image files but you get 100% of the quality, AND its native to VB6\.VB6 + .bmp = :star: :cheesy: :star: Link to comment Share on other sites More sharing options...
Godlord Posted April 8, 2012 Share Posted April 8, 2012 The reason why PNG isn't supported, is not because VB6 doesn't support it, but rather that WinAPI, and more specifically GDI doesn't offer native support for PNG. Just use [libpng](http://www.libpng.org/pub/png/libpng.html), if you want to be able to load and store PNG-images, like everyone else does.Yours faithfully S.J.R. van Schaik. Link to comment Share on other sites More sharing options...
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