Is the LINE widget has the shadow style properties? If not, how to achieve property of shadow?

Important: unclear posts may not receive useful answers.

Before posting

  • Get familiar with Markdown to format and structure your post
  • Be sure to update lvgl from the latest version from the master branch.
  • Be sure you have checked the FAQ and read the relevant part of the documentation.
  • If applicable use the Simulator to eliminate hardware related issues.

Delete this section if you read and applied the mentioned points.

Description

What MCU/Processor/Board and compiler are you using?

IMXRT1052

What LVGL version are you using?

V8

What do you want to achieve?

Property of shadow with LINE widget

What have you tried so far?

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.

There is no shadow property for a line. What you can do is drawing a line on a canvas and blur it.

See this example as a reference.

1 Like

Thanks,
This way is useful, but when i rotating the canvas causes a splash screen. The canvas buf used “LV_CANVAS_BUF_SIZE_TRUE_COLOR_ALPHA” , and LV_COLOR_DEPTH = 16.

Solved!The previous error is because i didn’t keep cbuf_tmp and cbuf as same size .