private static void exportFrame(ExportDiagnoser d, Frame f, File baseDirectory) {
		Rectangle rect = f.properRectangle();
		Point     pivot = f.getPivot();
		d.printSection(f.getName());
		RelativeFile relativeImageFile = f.getImageFile();
		if(relativeImageFile!=null) {
			File imageFile = relativeImageFile.getAbsoluteFile();
			File imagePath = new File("");
			try {
				imagePath = getRelativeFile(imageFile, baseDirectory);
				d.printKeyValue("Texture", imagePath.toString());
			} catch (IOException e) {
				d.reportExternalError("There was a problem while exporting the texture of "+f.getName());
				e.printStackTrace();
			}
		} else d.reportExternalError(f.getName() + " has no texture");
		if(rect!=null) {
			d.printKeyValue("TextureCorner","("+rect.x+    ", "+rect.y+     ", 0)");
			d.printKeyValue("TextureSize","("+rect.width+", "+rect.height+", 0)");
		} else d.reportExternalError(f.getName() + " does not have a rectangle defined");
		if(pivot!=null) {
			pivot.x -= rect.x;
			pivot.y -= rect.y;
			d.printKeyValue("Pivot","("+pivot.x+   ", "+pivot.y+    ", 0)");
		} else  d.reportExternalError(f.getName() + " does not have a pivot defined");
		
		if(f.getFlipX() || f.getFlipY()) {
			String flip = "";
			if(f.getFlipX()) flip+="x";
			if(f.getFlipY()) flip+="y";
			d.printKeyValue("Flip",flip);
		}
			

	}