Jump to content

Image as string


Recommended Posts

Posted

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?

Posted

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
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...