Search Results

Search results 1-20 of 101.

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

  • Hi, Is there any way to create a .a lib file from Emwin source code for controller iMXRT1064. If yes then please share the procedure Thanks Regards Anuj

  • Hi Thanks for your reply. Can I create a lib file from the emwin source code and use in my project. lib file is easy to manage instead of the source code. If yes then what is the procedure. Thanks & Regards, Anuj

  • Hello, I believe Emwin 6.16 is backward compatible with api's used in v5.48. I have a MCUXpresso project which is build using the emwin library. But recently I got the Emwin v6.16. I want to use the same API's as before without any modifications in my application code. Currently don't want to use the APP Wizard. Can I do that? Thanks Regards, Anuj

  • GIF drawing performance

    anuj.tanksali - - emWin related

    Post

    Hi, Thanks for your reply Am calling the functions as below flameSprite = GUI_SPRITE_CreateAnim(apbmFlameSprite7,140,122,200,aDelayFlameSprite7,11); GUI_SPRITE_StartAnim(flameSprite); flameSprite is always zero so my sprite function is failing. What could be the issue? Attached is the generated c code for the sprite Thanks Regards, Anuj

  • GIF drawing performance

    anuj.tanksali - - emWin related

    Post

    Hello, Am using Image_setGif for setting the gif's which seems to be affecting the timing for the other tasks in my application. I have 4 gifs which animate at a time on one screen. I have certain tasks which have to be executed every 5 seconds but the gif drawing affects this timing. Is there any way the performance can be increased or any other method of drawing which increases the gif drawing performance. Thanks Regards, Anuj

  • 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 …