forked from netshade/Cocoa-Touch-Barcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UIImage-NKDBarcode.h
36 lines (33 loc) · 1.59 KB
/
UIImage-NKDBarcode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// -----------------------------------------------------------------------------------
// NSImage-NKDBarcode.h
// -----------------------------------------------------------------------------------
// Created by Jeff LaMarche on Wed May 01 2002.
// Copyright (c) 2002 Naked Software. All rights reserved.
// -----------------------------------------------------------------------------------
// THIS SOURCE CODE IS PROVIDED AS-IS WITH NO WARRANTY OF ANY KIND
// -----------------------------------------------------------------------------------
// You may use and redistribute this source code without limitation
// -----------------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "NKDBarcode.h"
#import "NKDBarcodeOffscreenView.h"
/*!
@header NSImage-NKDBarcode.h
This category adds a single class method to NSImage that generates a resolution-independent NSImage from an NKDBarcode object.
*/
/*!
@category NSImage(NKDBarcode)
@discussion This category adds a single class method to NSImage that allows you to generate a resolution-independent NSImage from an NKDBarcode object.
*/
@interface UIImage(NKDBarcode)
/*!
@method imageFromBarcode:
@abstract Creates resolution independent image from barcode.
@param barcode An NKDBarcode object that needs to be drawn.
@result Initialized NSImage with PDF representation that represents the barcode pass in.
*/
+(UIImage *)imageFromBarcode:(NKDBarcode *)barcode;
+(NSData *)pdfFromBarcode:(NKDBarcode *)barcode;
+(UIImage *)imageFromBarcode:(NKDBarcode *)barcode inRect:(CGRect) rect;
@end