자바에서 image의 flush()메서드에 대해서...
보나
자바에서 image의 flush() 메서드에 대해서 자세히 알고 싶습니다.
API에는 다음과 같이 적혀 있군요.
근데 말이 너무 어려워요ㅠ_ㅠ
flushpublic abstract void flush()
Flushes all resources being used by this Image object. This includes any pixel data that is being cached for rendering to the screen as well as any system resources that are being used to store data or pixels for the image. The image is reset to a state similar to when it was first created so that if it is again rendered, the image data will have to be recreated or fetched again from its source.
This method always leaves the image in a state such that it can be reconstructed. This means the method applies only to cached or other secondary representations of images such as those that have been generated from an ImageProducer (read from a file, for example). It does nothing for off-screen images that have only one copy of their data.
전에는 단지 이미지 자원을 메모리에서 날리는 거라고 생각했는데 그렇지도 않은 모양입니다.
이미지를 로드한 후에도 화면에 이미지가 그려졌다는 것 같아요.
답변 기다리겠습니다^^