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?

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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