func_graphics_pixmaps_maskpixmap.rst 578 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _func_graphics_pixmaps_maskpixmap:
  2. ==========
  3. MaskPixmap
  4. ==========
  5. MaskPixmap -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. MaskPixmap:TPixmap( pixmap:TPixmap,mask_red,mask_green,mask_blue ) NoDebug
  10. Mask a pixmap
  11. @MaskPixmap builds a new pixmap with alpha components set to '0' wherever the pixel colors
  12. in the original @pixmap match @mask_red, @mask_green and @mask_blue. @mask_red, @mask_green and @mask_blue
  13. should be in the range 0 to 255.
  14. Parameters
  15. ==========
  16. Return Values
  17. =============
  18. A new pixmap object
  19. Examples
  20. ========
  21. See Also
  22. ========