* Constructor for Picture.
*
* @param editStatus the EditStatus containing current editing status.
*/
public Picture(EditStatus editStatus) {
PictureType pictureType = editStatus.getPictureType();
this.visualScreen = new int[pictureType.getNumberOfPixels()];
this.visualImage = createScreenImage(pictureType.getWidth(), pictureType.getHeight(), visualScreen);
this.priorityScreen = new int[pictureType.getNumberOfPixels()];
this.priorityImage = createScreenImage(pictureType.getWidth(), pictureType.getHeight(), priorityScreen);
if (pictureType.equals(PictureType.SCI0)) {
this.controlScreen = new int[pictureType.getNumberOfPixels()];
this.controlImage = createScreenImage(pictureType.getWidth(), pictureType.getHeight(), controlScreen);
}
this.editStatus = editStatus;
this.pictureCache = new PictureCache(editStatus);
this.pictureChangeListeners = new ArrayList<PictureChangeListener>();