Search Results

Search results 1-20 of 96.

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

  • Hello, I am using iMXRT1064 controller and NXP and Emwin library 5.48. I am using bare metal system i.e. no RTOS. GUI_Exec() is called continuously in super loop while(1). The device communicates with another system through serial communication and I have used interrupts for receiving the serial data. It is observed that when bytes are received in serial interrupt and if at the same time GUI_Exec is called then it seems to block the interrupt and bytes are missed. Is this expected? The window co…

  • Hi Florian, I set the WM_CF_HASTRANS flag to image widget using WM_SetTransState() function in WM_INIT_DIALOG. But still facing same issue. What I noticed is without the flag if no callback is used then doing only IMAGE_SetGif starts the GIF and it is continuously animating with transparency. So its not the WM_CF_HASTRANS flag issue I think. when I use GUI_GIF_DrawSub with callback I face an issue. I need to use the Callback as I want to stop the Animation after last frame is displayed. Thanks R…

  • Hello Florian, Thanks for the quick reply. Yes the image has transparency and I checked this on my windows computer. When I draw the same sub images in my dialog WM_PAINT they display fine i.e. with transparency. Only when I draw sub images in the image callback I get the transparency issue. So I believe the the GIF is fine as drawing in dialog WM_PAINT is working fine. I get the issue with Transparency only when drawing is done in image callback. Thanks Regards, Anuj

  • Hi Florian, Thanks, The issue was with the coordinates I changed the coordinates to (0,0) then it is working but facing an odd issue. This is my code in the image callback function. if(gasIconState == GAS_ANIMATION_START){ gasGifSubImageCntr++; if(gasGifSubImageCntr >= gasGifInfo.NumImages){ gasIconState = GAS_ANIMATION_STOP; (void)GUI_GIF_DrawSub(GetGasOnImagePtr(), GetGasOnImageSize(), 0, 0, (gasGifInfo.NumImages - 1)); } else{ (void)GUI_GIF_DrawSub(GetGasOnImagePtr(), GetGasOnImageSize(), 0, …

  • Hello, I want to control the no of GIF frames displayed on an image widget so have used a callback for the image widget. I use the IMAGE_SetGIFData(hItem, pData, FileSize) to set the GIF to image widget and use WM_SetCallback(hObj, Image_CallbackFunc) to set a callback to image widget. The LCD displays blank in this case. When I remove the WM_SetCallback function call then the GIF animation is visible on the LCD. I assume the callback is overwriting the drawing which is done automatically by IMA…

  • Paint drawing issues

    anuj.tanksali - - emWin related

    Post

    Hello, It seems the WM_PAINT invalidates a larger area in above case where the arc gets cleared. As GIF widgets are at the left of the window and date and time text widget is at the bottom right of the window if both have to be updated then emwin updates the whole rectangle. Due to this the center area where ARC is present gets cleared. (As per "Invalidation" section in Emwin Manual) I used WM_ValidateWindow to specify emwin do not update the ARC area, due to this if earlier the issue was coming…

  • Multiple language support

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks for the reply. How do I include the Chinese characters in any existing font such as Century Gothic? Regards, Anuj

  • Hello, I have 2 image widgets on which I show GIF animations or static image depending on events. The 2 image widgets have same height and width and are placed at same location on the dialog window. Initial state when the dialog window loads is image1 is static and image 2 on which I want to show GIF is hidden. On 25msec scheduler depending on conditions I enable image 2 using IMAGE_SetGif and hide the image 1 which I don't want to show. The image 1 hides for a second and then reappears. In this…

  • Paint drawing issues

    anuj.tanksali - - emWin related

    Post

    Hello, I have used 2-3 gif's on my dialog window and am using using image_SetGif function and they are working fine. I have other Text widgets and some drawing in Paint too. The following widgets below have to be updated and some drawing in my dialog window, 1) Image widget on Top Left corner of window on event in 25msec scheduler. 2) 3 GIF's using 3 image widgets placed at the left of the window. (at one time all the GIF's are animating simultaneously) animation initiated in 25msec scheduler on…

  • Hello, I have using Image_SetGif to display a gif but wanted to stop the Gif animation after last frame is displayed. Currently the Gif is displayed in a continuous loop. Animated sprites are one option but it seems sprites take up lot of memory so I wanted to use Image_SetGif only and stop the anination. Is there any way to do this? Thanks Regards Anuj

  • Multiple language support

    anuj.tanksali - - emWin related

    Post

    Hello, How do I go about adding multiple language support. Am using iMXTR1064 with SDRAM for LCD buffer and external flash WITHOUT FILESYSTEM which I plan to use for storing strings, fonts, bitmaps etc. Other than English, I need to add support for French, German, Dutch and Chinese. How do I go about generating font files for languages mentioned above using the font convertor?. Also is there a way to generate a single font file with all the sizes and fonts. Currently for English I have to genera…

  • Hi, Thanks for your reply. By "separate window" do you mean using image widget for each of the drawings? ? If yes then not sure if possible as for the first drawing I can use image widget as it is GIF which I want to show but for drawing other 2 areas I use GUI_draw_arc and GUI_MEMDEV_Writeat functions If you mean using separate child windows for drawing 3 areas then I think it can be done but handling will be little complex. Regards, Anuj

  • Hello, I was not able to understand clearly. My paint event is SetBkColor(color); GUI_Clear(); if(variable1) { GIF_drawsub(); } if( variable2) { variable2 = 0; drawArc() } if( variable3) { variable2 = 0; GUI_MEMDEV_WriteAt(); } I want to retain the arc and memdev image drawn earlier on LCD. How do I do that?. As in above code I am drawing everything each time PAINT is called it takes time. Thanks Regards, Anuj

  • Hello, Thanks for your reply. Is my code correct above. if I want to update an area continuously and update different areas intermittently do I need to draw all areas in PAINT as shown in above code. As currently GUI_Clear is called I may have to redraw everything. Can GUI_Clear be avoided and clear only specific areas which have to be updated and draw only those areas. Thanks Regards, Anuj

  • Hello, I have a GIF animation which I want to continuously show on a dialog window based on a variable. Currently the animation works but it slows down the system. I have a function which is called every 25msec in my super loop while(1). In the function I get the Sub image from the GIF image and call WM_InvalidateArea to update only the rectangle area of the GIF image shown. I have other areas too for which I call the same WM_InvalidateArea to be updated based on other variables but this is not …

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I was able to display the bmp and rotate it through memdev. I created the memdev's required in a different function, performed the rotate and kept the memdev ready. I displayed the memdev in WM_PAINT by GUI_MEMDEV_WriteAt function GUI_SetBkColor(GUI_GRAY) GUI_Clear(); GUI_MEMDEV_WriteAt(hDst,DIAL_SCREEN_HOME_ARC_CENTER_POS_X-(236/2), DIAL_SCREEN_HOME_ARC_CENTER_POS_Y-(236/2)); drawArc(); This is working but the screen loading performance is not improved much. My main intention is to impro…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I tried out as per the link given but facing some issues. I have made a function which does the task of writing to memory device. My code is as below, static GUI_MEMDEV_Handle hDst = 0; static GUI_MEMDEV_Handle hSrc = 0; int xSize = 235; int ySize = 235; hSrc = GUI_MEMDEV_CreateFixed32(0, 0, xSize, ySize); GUI_MEMDEV_Select(hSrc); GUI_DrawBitmap(bmdial , 0, 0) GUI_MEMDEV_Select(0); hDst = GUI_MEMDEV_CreateFixed32(0, 0, 500, 500); GUI_MEMDEV_Select(hDst); GUI_SetBkColor(GUI_TRANSPARENT); G…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks, I checked out the above link and will try it. There is a onpaint function for the dialog so the above code should go in onpaint or in my normal superloop while(1)? as we have to rotate the bmp at runtime depending on angle. If there is anything else we can try to achieve good performance with 2 buffers and without WM_CF_MEMDEV set please let me know as using 2 buffers is still slow. Am using iMXRT1064 controller. is there anything on the controller side which can be done other tha…

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks for your reply. I have the circular image with arrow at 90 deg position. Can we use memdev to draw the image and then rotate it. I think it will be possible. please me know. Thanks Regards Anuj

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, Thanks for the reply. I have already used the LCD_SetDevFunc() to set the custom copy buffer function. I will check the DMA option. Will using 3 buffers cause an improvement in speed regarding dialog loading? As mentioned above the knob widget seems to slow down dialog load quite a bit. Can we achieve the knob functionality with some other methods like memdev for drawing the bmp and memdev_rotate for rotating the bmp. if there is any sample project please share it. Thanks Regards, Anuj