ImagePreset copy = new ImagePreset(oldPreset);
FilterRepresentation representation = copy.getRepresentation(filterRepresentation);
if (representation == null) {
+ filterRepresentation = filterRepresentation.copy();
copy.addFilter(filterRepresentation);
} else if (filterRepresentation.getFilterType() == FilterRepresentation.TYPE_GEOMETRY) {
representation.useParametersFrom(filterRepresentation);
}
@Override
+ public String toString() {
+ return getName() + " : " + mCenterX + ", " + mCenterY + " radius: " + mRadiusX;
+ }
+
+ @Override
public FilterRepresentation copy() {
FilterVignetteRepresentation representation = new FilterVignetteRepresentation();
copyAllParameters(representation);
private Bitmap mPreviewImage;
public HistoryItem(ImagePreset preset, FilterRepresentation representation) {
- mImagePreset = new ImagePreset(preset);
+ mImagePreset = preset; // just keep a pointer to the current preset
if (representation != null) {
mFilterRepresentation = representation.copy();
}