# lv_draw_buf_convert.h (/api/draw/convert/lv_draw_buf_convert_h)



<ApiSummary functions="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_draw_buf_convert_premultiply" file="draw/convert/lv_draw_buf_convert.h" line="32" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/draw/convert/lv_draw_buf_convert.h#L32">
  lv_draw_buf_convert_premultiply [#lv_draw_buf_convert_premultiply]

  Convert draw\_buf to premultiplied format

  ```c title=" " lineNumbers=1
  lv_result_t lv_draw_buf_convert_premultiply(lv_draw_buf_t *buf)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name  | Type                                                       | Description           |
  | ----- | ---------------------------------------------------------- | --------------------- |
  | `buf` | <ApiLink name="lv_draw_buf_t" display="lv_draw_buf_t *" /> | pointer to a draw buf |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_color.h&#x22;, &#x22;lv_draw_buf.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_types.h&#x22;]" />
