My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones  
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
/* Copyright (c) 2007 Christopher J. W. Lloyd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */

#import <CoreGraphics/CGPDFPage.h>
#import <Onyx2D/O2PDFPage.h>
#import "CGConversions.h"

CGPDFPageRef CGPDFPageRetain(CGPDFPageRef self) {
return [self retain];
}

void CGPDFPageRelease(CGPDFPageRef self) {
[self release];
}

CGRect CGPDFPageGetBoxRect(CGPDFPageRef self,CGPDFBox box) {
CGRect result;

if(![self getRect:&result forBox:box])
result=CGRectZero;

return result;
}

CGAffineTransform CGPDFPageGetDrawingTransform(CGPDFPageRef self,CGPDFBox box,CGRect rect,int clockwiseDegrees,bool preserveAspectRatio) {
return CGAffineTransformFromO2(O2PDFPageGetDrawingTransform(self,box,rect,clockwiseDegrees,preserveAspectRatio));
}

Change log

ca790b6ad721 by Christopher Lloyd <cocotron> on Mar 31, 2010   Diff
split Onyx2D out of CoreGraphics
Go to: 
Project members, sign in to write a code review

Older revisions

e086cb4e7626 by Christopher Lloyd <cocotron> on Mar 29, 2010   Diff
fixed display problem with PDF image
resources, resized/renamed
NSRefreshTemplate, included .ai file
bf4c33780fe2 by cocotron on Nov 17, 2009   Diff
renamed KG* files to O2* files and
appropriate source changes
c4f9de1e4be6 by cocotron on Nov 12, 2009   Diff
- moved CG* basic types to CFBase.h
- cleaned up CF and CG headers so they
do not have ObjC in them
- AppKit changes related to CF/CG
header changes
...
All revisions of this file

File info

Size: 1741 bytes, 33 lines
Powered by Google Project Hosting