func_graphics_pixmaps_readpixel.rst 480 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. _func_graphics_pixmaps_readpixel:
  2. =========
  3. ReadPixel
  4. =========
  5. ReadPixel -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. ReadPixel( pixmap:TPixmap,x,y )
  10. Read a pixel from a pixmap
  11. The returned 32 bit value contains the following components:
  12. [ bits 24-31 | pixel alpha
  13. * bits 16-23 | pixel red
  14. * bits 8-15 | pixel green
  15. * bits 0-7 | pixel blue
  16. ]
  17. Parameters
  18. ==========
  19. Return Values
  20. =============
  21. A 32 bit pixel value
  22. Examples
  23. ========
  24. See Also
  25. ========