1// 2// PRCInvert.m 3// PRICE 4// Image Inversion Controller 5// 6// Created by Riccardo Mottola on Fri Nov 14 2008. 7// Copyright (c) 2008 Carduus. All rights reserved. 8// 9// This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 10// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 11 12 13#import "PRCInvert.h" 14#import "PRInvert.h" 15#import "MyDocument.h" 16 17@implementation PRCInvert 18 19 20- (IBAction)makeInverse:(id)sender 21{ 22 PRInvert *filter; 23 24 filter = [[PRInvert alloc] init]; 25 [[[NSDocumentController sharedDocumentController] currentDocument] runFilter:filter with:nil]; 26 [filter release]; 27} 28 29 30@end 31