class_bitmap.rst 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .. _class_BitMap:
  2. BitMap
  3. ======
  4. **Inherits:** :ref:`Resource<class_resource>`
  5. **Category:** Core
  6. Member Functions
  7. ----------------
  8. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  9. | void | :ref:`create<class_BitMap_create>` **(** :ref:`Vector2<class_vector2>` size **)** |
  10. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  11. | void | :ref:`create_from_image_alpha<class_BitMap_create_from_image_alpha>` **(** :ref:`Image<class_image>` image **)** |
  12. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`set_bit<class_BitMap_set_bit>` **(** :ref:`Vector2<class_vector2>` pos, :ref:`bool<class_bool>` bit **)** |
  14. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`get_bit<class_BitMap_get_bit>` **(** :ref:`Vector2<class_vector2>` pos **)** const |
  16. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_bit_rect<class_BitMap_set_bit_rect>` **(** :ref:`Rect2<class_rect2>` p_rect, :ref:`bool<class_bool>` bit **)** |
  18. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`int<class_int>` | :ref:`get_true_bit_count<class_BitMap_get_true_bit_count>` **(** **)** const |
  20. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Vector2<class_vector2>` | :ref:`get_size<class_BitMap_get_size>` **(** **)** const |
  22. +--------------------------------+----------------------------------------------------------------------------------------------------------------------------+
  23. Member Function Description
  24. ---------------------------
  25. .. _class_BitMap_create:
  26. - void **create** **(** :ref:`Vector2<class_vector2>` size **)**
  27. .. _class_BitMap_create_from_image_alpha:
  28. - void **create_from_image_alpha** **(** :ref:`Image<class_image>` image **)**
  29. .. _class_BitMap_set_bit:
  30. - void **set_bit** **(** :ref:`Vector2<class_vector2>` pos, :ref:`bool<class_bool>` bit **)**
  31. .. _class_BitMap_get_bit:
  32. - :ref:`bool<class_bool>` **get_bit** **(** :ref:`Vector2<class_vector2>` pos **)** const
  33. .. _class_BitMap_set_bit_rect:
  34. - void **set_bit_rect** **(** :ref:`Rect2<class_rect2>` p_rect, :ref:`bool<class_bool>` bit **)**
  35. .. _class_BitMap_get_true_bit_count:
  36. - :ref:`int<class_int>` **get_true_bit_count** **(** **)** const
  37. .. _class_BitMap_get_size:
  38. - :ref:`Vector2<class_vector2>` **get_size** **(** **)** const