1 package mhr.appcore.image.layers;
3 import org.w3c.dom.Document;
4 import org.w3c.dom.Element;
6 import mhr.appcore.bitmap.BitmapInfo;
7 import mhr.appcore.bitmap.ChannelCount;
8 import mhr.appcore.bitmap.ColorMode;
9 import mhr.appcore.bitmap.NBitmap;
10 import mhr.appcore.bitmap.exceptions.BitmapAllocationException;
11 import mhr.appcore.bitmap.exceptions.UnsupportedBitmapException;
12 import mhr.appcore.blending.BlendMode;
13 import mhr.appcore.blending.Blender;
14 import mhr.appcore.exceptions.AlreadyDisposedException;
15 import mhr.appcore.image.Image;
16 import mhr.appcore.image.exceptions.InvalidLayerSpecificPresentationSuppliedException;
17 import mhr.appcore.image.exceptions.LayerCreationException;
18 import mhr.appcore.image.layers.Layer.FileConstants;
19 import mhr.appcore.image.layers.lut.ContrastLUTLayer;
20 import mhr.appcore.interfaces.ImageFile;
21 import mhr.appcore.interfaces.PDBitmap;
22 import mhr.appcore.interpolators.Interpolator;
23 import mhr.appcore.interpolators.InterpolatorType;
24 import mhr.appcore.utils.Rect;
77 mode =
BlendMode.valueOf(i.getElementsByTagName(
"BlendMode").item(0).getTextContent());
88 tmpBitmap = f.
loadBitmap(Integer.toString(
id));
93 }
catch (Exception e) {
98 if (tmpBitmap != null) {
313 mode = ((RasterLayerSpecificPresentation)presentation.
extra).mode;