Search Results

Search results 1-20 of 91.

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

  • 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

  • Dialog Navigation slow

    anuj.tanksali - - emWin related

    Post

    Hello, I have a number of dialog windows for screens and navigate from one dialog to another. I had used RGB565 with multibuffering and Memdev enabled using WM_SetCreateFlags(WM_CF_MEMDEV) but observed dialog loading is slow. I call GUI_exec() continuously in my super loop while(1) to update the dialogs. I performed the following configurations below to check the dialog loading in each case. With WM_SetCreateFlags(WM_CF_MEMDEV) and #define GUI_BUFFERS 2 - Navigation between dialogs is slow. With…

  • Reistive touch issue

    anuj.tanksali - - emWin related

    Post

    Hi , Thanks for your reply. I realized this earlier and had already corrected the code but still same issue. Please see latest code below, touchState is declared as static uint16_t touchX = 0; uint16_t touchY = 0; uint8_t pressed = FALSE; static uint8_t prevState = FALSE; // Call the function to get the raw values of x,y pressed = Touch_getPositionRaw(&touchX, &touchY); if(pressed == TRUE){ // Set the parameters to send to emwin. touchState.Pressed = TRUE; // Set the values; touchState.x = touch…

  • Reistive touch issue

    anuj.tanksali - - emWin related

    Post

    Hello, Am using iMXRT1064 with Emwin library and 7" resistive touch screen. I am using a custom ADC driver to read x and y values. // points p0,p1,p2 x and y pixels int touchRefValX[3] = {40,760,400}; int touchRefValY[3] = {24,240,456}; // ADC x and y values at above points int touchSampleValX[3] = {2552,1528,1954}; int touchSampleValY[3] = {2295,1960,1803}; the range of ADC values for x and y are always in around 1400 counts to 2500 counts.for 12 bit range should be 0-4096. // init GUI_TOUCH_Ca…

  • Colors issue on Hardware

    anuj.tanksali - - emWin related

    Post

    Hi Florian, Thanks for the reply. Just a point to mention the colors look same when compared with the colors on LCD but on the LCD they look dull when compared with the simulation. Regards, Anuj

  • Colors issue on Hardware

    anuj.tanksali - - emWin related

    Post

    Hi, I am using a simulator for my application and porting the code to my Hardware on iMXRT1064. I see a difference in colors on my PC simulation application when compared to colors on the LCD with hardware. color mode is RGB 565 on both simulation and my hardware. Am using emwin version 5.50 on hardware. The colors on the hardware look dull compared to the simulation on PC. Does emwin have any setting to improve the colors on the hardware. Thanks Regards, Anuj