topsecret9x
-
Posts
12 -
Joined
-
Last visited
Content Type
Forums
Store
Downloads
Blogs
Posts posted by topsecret9x
-
-
Hi everyone,
I already tracked to this function gdisp_lld_draw_pixel(GDisplay *g) in /driver/gdisp/framebuffer/gdisp_lld_framebuffer.c and I have a question: Whenever I want to draw anything, such as Background, BMP picture, .. on framebuffer, this function is always called? Or any other functions else?
And another question for gwinDestroy(GHandle gh) and gwinSetVisible(GHandle gh, bool_t visible), I tracked but can't find which functions are called to clear the buffer and redraw, such as that function above gdisp_lld_draw_pixel(GDisplay *g). Can you guys help me to point out this?Thank you very much.
-
@inmarket thank you very much.
-
Sure, I got it.
-
33 minutes ago, Joel Bodenmann said:
Hello @topsecret9x and welcome to the µGFX community!
@inmarket pretty much said everything there is to say. However, just for completeness I'd like to point you towards this solution which uses a slightly modified pixmap to work with alpha:
Whether or not that is useful depends a lot on your application & platform.
thank you again, @ Joel Bodenmann
-
14 minutes ago, Joel Bodenmann said:
My question is why you're doing the "already rotated with other software" part. Just let µGFX handle the orientation, it is doing that very well.
What are your reasons to rotate externally? You can just use gdispSetOrientation() to change your screen orientation.I think my explanation already unhinged you. Sorry about that. I only need 1 thing in this case:
How can I rotate the ugfx GUI as I mention in the picture above? -
1 minute ago, Joel Bodenmann said:
My question is why you're doing the "already rotated with other software" part. Just let µGFX handle the orientation, it is doing that very well.
What are your reasons to rotate externally? You can just use gdispSetOrientation() to change your screen orientation.because I used 2 layers, layer 1 is video, layer 2 is ugfx GUI, and ugfx can't rotate video, then I must use another software to rotate it, but that soft doesn't support both video and GUI at the same time, so my solution is using that soft for video, and ugfx for GUI.
-
Hi everyone,
Now I’m facing a problem like this:
My device’s lcd is 854x480 (already rotated with other software to be 480x854 as picture below), and the framebuffer is 480x854. So I have 2 options to match the framebuffer of ugfx with my lcd:
1. Increase framebuffer size, such as 854x480 (or 854x854), but whenever 1 axis becomes larger than 480, the GUI icons is tear shaped.
2. Rotate, but as this picture below, I can’t have the right rotation GUI against the LCD. I already re-config the rotate formula in gdisp_lld_framebuffer.c but still can’t.
So please help me in this case, I really appreciate that. Thank you very much.
-
thank you so much, I already hack the driver to display ARGB8888 image.
-
Hi,
Now I'm developing GUI for a board, and I found that ugfx has the many usefull functions I can use, but now I'm facing a problem that:
- My board is using framebuffer, and I alr tested imagebox with 2-byte images such as RGB565 - BMP files, it works fine.
- But my aim is drawing a GUI can be fully transparent, it's mean I MUST to use ARGB888 4-byte - which doesn't supported in driver/gdisp/framebuffer, and now I don't know how to this.Please help me in this case. I really appreciate that.
Thank you for reading. Have a nice day.
Draw pixel on framebuffer
in Support
Posted
@inmarket Thank you for your answer.
I still have a question: In /driver/gdisp/framebuffer/gdisp_lld_framebuffer.c, I saw PIXEL_ADDR(g, pos)[0], is this the data array to draw? If I change the value, is it directly changed on framebuffer right away?