GM: surface getpixel
From GMpedia.org Wiki
- The correct title of this article is surface_getpixel(id,x,y). It appears incorrectly here because of technical restrictions.
- The correct title of this article is surface_getpixel(). It appears incorrectly here because of technical restrictions.
Arguments
id = name of the variable which holds the ID of the surface (see surface_create).
x = Horizontal position of pixel on screen.
y = Vertical position of pixel on screen.
Limitations
none.
Note: Please remove limitations and port them in the "Remarks" section at the end of the article.
This function returns the color of the pixel with the indicated position (x,y) in the surface with the given ID. It could slow up the game if used excessively, so be careful with its usage. This is similar to draw_getpixel.
[edit] See Also
- Surfaces - a complete Game Maker tutorial in surfaces.
- draw_getpixel
This article was originally found at the Game Maker Knowledge Base, contributed by Eyas Sharaiha.
See the talk page for details
See the talk page for details

