lolcatsareawesome Posted July 17, 2013 Posted July 17, 2013 Hi there, I want to know what kind of string the dxGetTexturePixels function returns? I mean, what type is like base64 or something like that. Because, I want to recreate the image after with PHP. Someone?
iMr.3a[Z]eF Posted July 17, 2013 Posted July 17, 2013 I really don't understand you, can you explain easier?. To Visit Us Press Here: mtasa://5.9.206.180:22002
lolcatsareawesome Posted July 17, 2013 Author Posted July 17, 2013 Of course. The dxGetTexturePixels return a string that contain the texture as a string. I want to know what kind of string is because, with this string i want to create it with the PHP function imagecreatefromstring(). Understand now?
codeluaeveryday Posted July 18, 2013 Posted July 18, 2013 It pretty much works like that ^^, I usually use it for google graphs, I get the image data and then draw it in mta. It should work for you. I think its base 64.I guess you could do a screenshot system. Just trial and error it, you'll be fine. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
Moderators IIYAMA Posted July 18, 2013 Moderators Posted July 18, 2013 Maybe also interested to know. (sorry that I go a little off the subject) After convert to a text file, it multiply by 10X+ in size(vs jpg). 1000 x 1000 red pixels 3,81 MB and of course it makes sense, it is raw data. But still it is funny because the biggest image format that I have ever seen is Canon camera raw format. This format comes close to that. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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