func_graphics_max2d_lockimage.rst 594 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _func_graphics_max2d_lockimage:
  2. =========
  3. LockImage
  4. =========
  5. LockImage -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. LockImage:TPixmap( image:TImage,frame=0,read_lock=True,write_lock=True )
  10. Lock an image for direct access
  11. Locking an image allows you to directly access an image's pixels.
  12. Only images created with the DYNAMICIMAGE flag can be locked.
  13. Locked images must eventually be unlocked with #UnlockImage before they can be drawn.
  14. Parameters
  15. ==========
  16. Return Values
  17. =============
  18. A pixmap representing the image contents
  19. Examples
  20. ========
  21. See Also
  22. ========