Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to reduce flicking in animation?

Answers were Sorted based on User's Feedback



How to reduce flicking in animation?..

Answer / m!r@

Double Buffering

sample code of java to reduce flinking :

public void update(Graphics g) {
Graphics offgc;
Image offscreen = null;
Dimension d = size();
offscreen = createImage(d.width, d.height);
offgc = offscreen.getGraphics();
offgc.setColor(getBackground());
offgc.fillRect(0, 0, d.width, d.height);
offgc.setColor(getForeground());
paint(offgc);
g.drawImage(offscreen, 0, 0, this);

}

Is This Answer Correct ?    1 Yes 0 No

How to reduce flicking in animation?..

Answer / tarush1988

double buffering

Is This Answer Correct ?    0 Yes 0 No

How to reduce flicking in animation?..

Answer / m. abhishek

By using offGra first draw whole animated image on a blank
Image and put this image directly on the screen

so at the time of animation the each movement of image can
draw
in other image and put this Image to screen.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

what is the difference between cd & dvd ?

30 Answers   Lovely Professional University, Satyam, Sibylsys,


question on Thread synchronization

3 Answers   Huawei,


What is package private scope in java?

0 Answers  


Explain about main() method in java ?

0 Answers  


Java is based on pass by reference or pass by value ..

6 Answers   L&T, Wipro,


What is busy spin, and why should you use it?

0 Answers  


Explain the difference between an Interface and an Abstract class?

0 Answers   BirlaSoft,


solve (x-1)(x-9)=8;

3 Answers   IBM, Manhattan, TCS,


Is java an ide?

0 Answers  


What is object of class in java?

0 Answers  


What is class forname?

0 Answers  


What are the restrictions that are applied to the java static methods?

0 Answers  


Categories