DxSetTexturePixels

From Multi Theft Auto: Wiki
Revision as of 01:02, 25 January 2012 by Ccw (talk | contribs) (Created page with "{{Client function}} __NOTOC__ This function set the pixels of a texture element. It will work with a standard texture, render target or screen source. ==S...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function set the pixels of a texture element. It will work with a standard texture, render target or screen source.

Syntax

bool dxSetTexturePixels( element texture, string pixels [, int x = 0, int y = 0, int width, int height ] )

Required Arguments

  • texture : The texture element to set the pixels of
  • pixels : The pixels to use

Optional Arguments

By default the pixels are set starting at the top left corner of the texture. To set a different region, define a rectangular area using all four of these optional arguments:

  • x: Rectangle left position
  • y: Rectangle top position
  • width: Rectangle width
  • height : Rectangle height

Returns

Returns a string if successful, false if invalid arguments were passed to the function.

Example

TODO

See Also