/* * Copyright (c) 2012 Diamond Light Source Ltd. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package uk.ac.diamond.scisoft.analysis.io; /** * This class saves a DataHolder as a JPEG image file. The maximum value for each pixel that JPEG is capable of * handling is 255. If the value of a measurement exceeds this value then this method is recommended. This method will * scale the values of the datasets within a DataHolder to lie within the capabilities of JPEG. */ public class JPEGScaledSaver extends JavaImageScaledSaver { /** * @param FileName */ public JPEGScaledSaver(String FileName) { super(FileName, "jpeg", 8, true); } /** * Save as JPEG using given minimum and maximum values * @param FileName * @param min * @param max */ public JPEGScaledSaver(String FileName, double min, double max) { super(FileName, "jpeg", 8, true, min, max); } }