LexaGb Beginner

  • Member since May 25th 2018
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • LexaGb -

    Replied to the thread Emwin image draw.

    Post
    Hello, functions GUI_MEMDEV_CopyToLCD...() ingnore the alpha channel. If you want to consider the transparency then use GUI_MEMDEV_WriteAt() instead of GUI_MEMDEV_CopyToLCDAt(). Alex.
  • LexaGb -

    Replied to the thread Emwin image draw.

    Post
    Upd. If you do not want to draw the whole image on the screen before copying a half in memory device then you can use another memory device for drawing. This results in only half image displayed on the screen: C Source Code (45 lines) Alex.
  • LexaGb -

    Replied to the thread Emwin image draw.

    Post
    Hello, as I noticed the first approach is working for uncompressed bitmaps. If your bitmap is compressed (RLE etc) then it may end with incorrect drawing due to complex compressed data structure. Further it may concern also uncompressed…
  • LexaGb -

    Replied to the thread Emwin image draw.

    Post
    Hello, there maybe a way to copy a bitmap structure and change XSize to a half of original size, something like this: C Source Code (34 lines) As far as I understand it is working with uncompressed bitmaps. Maybe a way better is to use memory…
  • LexaGb -

    Replied to the thread Need to plot Knob with Graph [Newbie].

    Post
    Hello, emWin reference guide, chapter 19.4.6 "KNOB API", function KNOB_SetDevice(): "Sets a memory device which contains a drawn knob. This drawing defines the appearance of the knob." So you need first to create memory device at least for the knob…
  • LexaGb -

    Replied to the thread How to set image as background of TreeView widget item.

    Post
    Hello, you can add new leaf below selected but its going to be a big difficult code to handle "main" leaf and its "info" leaf in conjunction. Instead of this I'd change the size of selected leaf then draw upper (for item) and lower (for info) rects and…
  • LexaGb -

    Replied to the thread How to set image as background of TreeView widget item.

    Post
    Hello, in case you set indentation of item text to 0 then text is covered by item images. I think it is because default drawing function first draws item text and after that it draws images. To change the order I think custom drawing function can be…