graphics.loadPNG

From GTA Connected
Jump to navigation Jump to search

Function Client Only icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline

Available since Client 1.0.0

Texture graphics.loadPNG(Stream stream OR Sting url)

The graphics.loadPNG function is used to create a texture object from a stream containing PNG data.

Parameters

1) Stream stream The file stream of the PNG file, or String with a URL to a PNG file.

Return

Texture The texture object.

Notes

  • The first parameter can be either a file stream, or a URL to a file on the internet.
  • When using a URL, the file must be accessible by the client. The client will use it's own connection to grab the file, which means it must be publicly available.

Examples

There aren't any examples for this function.

Compatibility

There isn't any compatibility information for this function.