class_bitmap.rst 3.4 KB

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