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?.
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.
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.
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