Questions tagged [repaint]

Repaint refers to issues relating to re-rendering or redrawing user interface screens or portions of those screens.

Repaint is the process of re-rendering or redrawing user interface screens or portions of those screens. A number of different paint techniques may be employed in 2-D or 3-D graphics.

1282 questions
7
votes
3 answers

CSS animation with CSS variables and @keyframes not updating on Safari

I'm doing an animation with CSS variables, where a CSS variable value changes based on the page scroll. That variable is then used on animation with keyframes. Originally it's updating correctly only on Firefox. Meanwhile, I found a way to make it…
sandrina-p
  • 3,794
  • 8
  • 32
  • 60
7
votes
1 answer

How to prevent repaint of other elements when using CSS transition

I am trying to prevent browser repainting to improve performance on a large single page app that makes use of CSS animations. If I have an element that has a :hover { transform: scale(...) } effect on it, I can prevent repaints by using the…
Paul Kaplan
  • 2,885
  • 21
  • 25
7
votes
4 answers

Prevent repainting of window in C++

I am writing a global hook DLL that needs to do some drawing using GDI+ on a window in response to an event. My problem is that the window that is being drawn keeps repainting itself, so what I draw gets erased before I want it to. Is there any way…
AniDev
  • 1,569
  • 1
  • 18
  • 21
7
votes
4 answers

workaround for display block and css transitions not triggering

Sorry all for so many updates in this question and I'm glad for everyone trying to help me. I think below there is a more clear way to understand this problem: CSS transitions will not apply if you set the display property of an element to block…
incompleteness
  • 260
  • 1
  • 12
7
votes
1 answer

Java GUI repaint() problem?

I have a JFrame. This JFrame contains a JButton. I click the JButton and 10 JTextFields are created. the problem: I cannot see them until "I force a repaint()" by resizing the window. Only then do I see the JTextFields created. CODE: JPanel points =…
Devoted
  • 177,705
  • 43
  • 90
  • 110
7
votes
1 answer

Google Chrome timeline view, very slow paint operations with lots of update layer tree calls

I'm seeing an excessive paint operation which is taking over 1 second to render in Google Chrome. Is there any way for me to diagnose further what the root cause is? I can see that it's caused by lots of calls to "update layer tree", but I'm not…
magritte
  • 7,396
  • 10
  • 59
  • 79
7
votes
1 answer

javafx listview and treeview controls are not repainted correctly

i am trying to put elements on a listview and treeview with javafx, but both controls wont refresh theyre content. i am using an obvservable list to control the items and every time i delete one item, the listview or treeview removes it from the…
xSmorpheusSx
  • 93
  • 1
  • 6
7
votes
6 answers

How to report progress of a JavaScript function?

I have a JavaScript function which is quite long and performs a number of tasks, I would like to report progress to the user by updating the contents of a SPAN element with a message as I go. I tried adding…
LambyPie
  • 98
  • 2
  • 6
7
votes
3 answers

How can I refresh One form when the other form is closed?

I have been developing project in c#. It has 2 form and these are connected with between each other. I want to do that when second form is closed, first form refresh. If I use Thread's Sleep program will be tired. I want to do this with closing…
OEASLAN
  • 150
  • 1
  • 1
  • 8
7
votes
5 answers

How to change controls simultaneously without repainting each one?

For example I need to disable two buttons in runtime. After I disabled first button it bacame gray, the second - it also became gray. But I do not know how to make the repainting simultaneous! I need something like that: freeze the Form (disable…
Alexander
  • 153
  • 1
  • 2
  • 8
7
votes
3 answers

Stop flickering in swing when i repaint too much

I am making an RPG with a tilemap. To generate the tilemap i loop through a 2 dimensional array but that means that when I repaint I have to do that each time. If I repaint too much the screen flickers how could I stop this. package…
sanchixx
  • 275
  • 2
  • 5
  • 12
7
votes
1 answer

Java not calling component's overloaded paintComponent method

First this is part of a homework assignment to create a mosaic image generator. I want the program to repaint in realtime as it finds a image and place it ontop of another (source image). This is code to create the panel in my main function. The…
6
votes
1 answer

JLayeredPane and painting

I am writing an application which has a JLayeredPane (call it layers) containing two JPanels in different layers. I override the paintComponent method of the JPanel at the bottom (call it grid_panel) so it paints a grid, and the the paintComponent…
stackoverflower
  • 3,885
  • 10
  • 47
  • 71
6
votes
4 answers

JFrame removing JPanels and adding a new JPanel

I currrently have a SwingWorker that sends a HTTP Request and I override the SwingWorker's done() method to change contents in a JFrame. I want to basically remove everything and add a new members panel on the JFrame depending on the values…
unleashed
  • 915
  • 2
  • 16
  • 35
6
votes
1 answer

WPF Image, changing color of pixels

I have a problem. I need to fill (or repaint) some pixels at image, stored in Image control. This is a png image. I mean, that all black pixels should be filled with, for example, red color. How can I do this? I thought I can access directly to…
Ivan
  • 609
  • 8
  • 21
1 2
3
85 86