|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style.h>
Data Fields | |
| uint32_t | width |
| uint32_t | height |
| mln_style_image_info_fields | fields |
| mln_buffer_view | pixels |
| const mln_image_stretch * | stretch_x |
| size_t | stretch_x_count |
| const mln_image_stretch * | stretch_y |
| size_t | stretch_y_count |
| mln_image_content | content |
| mln_style_image_text_fit | text_fit_width |
| mln_style_image_text_fit | text_fit_height |
| float | pixel_ratio |
| bool | sdf |
| bool | keep_unused |
An image in the map's style.
| mln_image_content mln_style_image_info::content |
| mln_style_image_info_fields mln_style_image_info::fields |
| uint32_t mln_style_image_info::height |
| bool mln_style_image_info::keep_unused |
| float mln_style_image_info::pixel_ratio |
| mln_buffer_view mln_style_image_info::pixels |
The premultiplied RGBA pixels, in rows of width * 4 bytes, from the top row down.
| bool mln_style_image_info::sdf |
| const mln_image_stretch* mln_style_image_info::stretch_x |
| size_t mln_style_image_info::stretch_x_count |
| const mln_image_stretch* mln_style_image_info::stretch_y |
| size_t mln_style_image_info::stretch_y_count |
| mln_style_image_text_fit mln_style_image_info::text_fit_height |
| mln_style_image_text_fit mln_style_image_info::text_fit_width |
| uint32_t mln_style_image_info::width |