/KImageViewer

A ready to use Image viewer, written in Objective-C Cocoa for Mac OsX, with tools pannel for the zoom

Primary LanguageObjective-C

@Overview: KImageViewer is a simple and ready to use Image viewer written in Objective-C Cocoa for Mac OSX, with tools panel for the zoom options, scroll, fit to screen atc..
@Site and Screenshot: http://www.federicocappelli.net/lib-code/kimageviewer/

@Credits: Federico Cappelli
@Support: (ahahah support :D) anyway: admin (at) federicocappelli.net

@Framework dependencies:
#import <Quartz/Quartz.h>

@use:
----In the superview

-(void)awakeFromNib
{    
    //Init the KImageViewer
    self.imageView = [[KImageViewer alloc] initWithFrame:CGRectMake(256.0, 0, 477.0, 411.0)];
    [self.view addSubview:self.imageView.view];
}

---Show image:

NSString *immPath = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"jpg" inDirectory:nil];
    [imageViewer setImageWithURL:[NSURL fileURLWithPath:immPath]];