Класс для работы с изображениями
More...
#include <image.hpp>
|
| img (const std::string &Path=ImgDir, const point< unsigned > &coord={0, 0}, const point< unsigned > &size={100, 100}) |
|
bool | LoadImage (const std::string &Path=ImgDir) |
| Загрузить изображение из файла
|
|
void | Render (point< unsigned > coord={0, 0}, point< unsigned > size={0, 0}) |
| Вывести изображение
|
|
point< unsigned > | GetSize () |
| Получить размеры изображения
|
|
ARGB< BitsType > * | GetImagePtr () |
|
| UIElement (point< unsigned > coord={0, 0}, point< unsigned > size={16, 16}, ksys_color_t MainColor=OS::sys_color_table.frame_area, unsigned Margin=DefaultMargin) |
|
bool | Hover () |
| Проверяет находится ли курсор мыши на этом элементе
|
|
void | SetSize (const point< unsigned > &NewSize) |
| Изменить размер текстовой метки
|
|
void | SetCoord (const point< unsigned > &NewCoords) |
| Изменить координаты текстовой метки
|
|
point< unsigned > | GetSize () |
| Получить размер элемента
|
|
point< unsigned > | GetCoord () |
| Получить координаты элемента
|
|
|
point< unsigned > | _coord |
| Координаты
|
|
point< unsigned > | _size |
| Размер
|
|
ksys_color_t | _MainColor |
|
unsigned | _Margin |
| Отступы
|
|
Класс для работы с изображениями
◆ GetSize()
point< unsigned > KolibriLib::UI::Image::img::GetSize |
( |
| ) |
|
Получить размеры изображения
- Returns
- _size
◆ LoadImage()
bool KolibriLib::UI::Image::img::LoadImage |
( |
const std::string & | Path = ImgDir | ) |
|
Загрузить изображение из файла
- Parameters
-
Path | Путь до файла с изображением |
- Returns
- true если удачно, false если неудачно
◆ Render()
void KolibriLib::UI::Image::img::Render |
( |
point< unsigned > | coord = {0, 0}, |
|
|
point< unsigned > | size = {0, 0} ) |
Вывести изображение
- Parameters
-
- Warning
- Функция пока что очень медленная, может быть когданибудь позже от=птимизирую...
The documentation for this class was generated from the following file:
- F:/KolibriOs/KolibriOS-Cpp-Lib/src/include/kolibriLib/image.hpp