![]() |
|
#1
|
|||
|
|||
Not redrawing imageHi all,
Coming straight to the problem I am drawing a rectangle using API fl_rect( x,y,w,h ) after that I am filling certain area inside that rectangle using fl_rectf(x,y,w/2,h/2) So far everything goes fine but when I try to toggle the state of drawing using FUNCTION KEY F9 that area is not redrawing CPP / C++ / C Code:
CPP / C++ / C Code:
What might be the reason I tried Fl::flush also but doesn't work? __________________
Everything you see is a Dream... Last edited by admin : 20-Dec-2007 at 04:41.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Not redrawing imageYou should call draw() in handle(), not flush().
|
|
#3
|
|||
|
|||
Re: Not redrawing imageThanks for your precious reply
Initially i tired with redraw() but it was not refreshing the screen With redraw() or flush() it faces the same problem of not refreshing the screen , but when screen is minimized and maximized it refreshes the screen for now I have replaced redraw() or flush() with (hide() ,show()) it works fine but this is not the required solution because if I do this ,noticeable flickering is there . Can anyone tell me the better solution ? __________________
Everything you see is a Dream... |
|
#4
|
|||
|
|||
Re: Not redrawing imageQuote:
I think redraw() method should work. I also implement some widget, here's its handle section. CPP / C++ / C Code:
|
|
#5
|
|||
|
|||
Re: Not redrawing imageYes it does but in the case I have mentioned I is not doing that ...
When it's a question of painting in void window it is doing that beautifully but when you want to erase what you have painted it is creating problem __________________
Everything you see is a Dream... |
|
#6
|
|||
|
|||
Re: Not redrawing imageQuote:
If you are talking about flickering, to my experience it is probably unavoidable, especially on some platform. I implement the same code both on ARM SoC and x86 version testing on VMWare. It looks flawless on PC but flickers on ARM platform. |
|
#7
|
|||
|
|||
Re: Not redrawing imageYou got me right
I am using ARM processor only My requirement is I want dynamically to paint half rectangle and erase that half portion so that it appears half filled when FUNCTION KEY say F9 is pressed once and full empty when it is again pressed without minimizing and maximizing of window __________________
Everything you see is a Dream... |
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Image onto JFrame | tedds | Java Forum | 8 | 25-Oct-2007 20:04 |
| Importing images | arety33 | Java Forum | 1 | 12-Jul-2007 13:28 |
| How to create or display an image | Unit1 | C Programming Language | 1 | 27-Sep-2006 02:18 |
| GIM gidedit - a fltk fluid resize project | cable_guy_67 | FLTK Forum | 2 | 01-Jun-2005 15:00 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 21:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The