Search Results
Search results 1-6 of 6.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Dear all, I'd like to print the bmp-picture with transparent RGB-color value(0xFF00FF) on the background bmp and then print them all on the LCD. How do I implement it with emWin? image-data(testbg.bmp and num_w....bmp) are 16bit, 565 formated bmp. When I try test_trans1 function as below , transparent area also printed on lcd. //-----------------------TEST CODE--------------------// void test_trans1(....){ GUI_SelectLayer(1); hMem = GUI_MEMDEV_CreateEx(x0, y0, xSize, ySize, GUI_MEMDEV_HASTRANS);…
-
Thanks. Let me try more later as you advised. Please close this issue. Best Regards, Tommy Lim
-
Hello, I want to rotate bmp using mem-device function as below. I refered to "GUI_MEMDEV_Rotate.c" as example. final output was just yellow rectagle, not bmp image. Can anyone advice to me what is wrong on below codes? FYI, bmp is 16bit(565) bmp data. //-----------------------------------------------------------------------------------------------// GUI_MEMDEV_Handle hMemSrc,hMemDst; hMemSrc = GUI_MEMDEV_CreateFixed(0, 0, 30,30,GUI_MEMDEV_NOTRANS,GUI_MEMDEV_APILIST_16,GUI_COLOR_CONV_565 ); GUI_M…
-
Dear Florian, Sorry for late response. Thank you for your answer in advacne. The reason that I delete and recreate the device was that I thought that is right for memory management like any other memory allocation scheme. But emWin seems not like that. I think you're saying to declare hMem handle as global and continue to use it without deleting it. What if various sizes bmp data should be printed with mem-deveice function? Do I have to declare one mem-dev handle for biggest size? FYI, regarding…
-
Dear Yuki, The following contents are just my thoughts. I am also novice for enWin library. Please keep this in mind as reference.. I think DrawRect is a very simple function. This is because all you have to do is write data while comparing the start and end regions. I think FillRect is also a very simple function. Firstly set area with the start point and end point area on the LCD and just send the color data(for ex, 16bit 565) as amount of the set area size. However, the string function will t…
-
Hello, I wrote the attached codes to output a string by activating the memory device function of emwin lib. This code seemed to work well, but as I tested it a few times, the hMem handle value returned from GUI_MEMDEV_CreateEx, began to increase at some point, and then from a moment it was out of control as if it was running out of memory and output went mess. Can someone tell me what caused this symptom? FYI, the function created below confirmed that GUI_MEMDEV_CreateEx() and GUI_MEMDEV_Delete(…