Jump to content

Question About fetchRemote


HunT

Recommended Posts

I didn't understand your question. Using fetchRemote to get an image from a website is the same as getting a file's content and using dxCreateTexture to load it, it will get the file's content everytime you call it. There's even an example in the wiki for that.

1st, it gets the image content, sends it to the client.

2nd, the client calls dxCreateTexture which then returns the texture from what you sent to it. It's then stored in a variable.

3rd, you call dxDrawImage with that variable.

If this is not what you wanted, I'd like you to explain it better.

Link to comment
I wonder why would you need it.

Why if the player enter the link with large image (example 3000x3000 3mb) other players download 3 mb for nothing,why after download the checker say : max size 50x50,and sure lag :/

getimagesize 
imagecreatefromjpeg or imagecreatefrompng 
imagejpeg or imagepng 
imagedestroy 
header 

Click these functions.

Tnx Cadu12 but i don't know the php :/ never use this.

---------------------------

Solved

Link to comment

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