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
#import <CoreGraphics/CGImageSource.h>
#import <Onyx2D/O2ImageSource.h>

@interface _O2ImageSource : O2ImageSource
@end

CGImageSourceRef CGImageSourceCreateWithData(CFDataRef data,CFDictionaryRef options) {
return (CGImageSourceRef)[O2ImageSource newImageSourceWithData:data options:options];
}

CGImageSourceRef CGImageSourceCreateWithURL(CFURLRef url,CFDictionaryRef options) {
return (CGImageSourceRef)[O2ImageSource newImageSourceWithURL:(NSURL *)url options:options];
}

size_t CGImageSourceGetCount(CGImageSourceRef self) {
return [self count];
}

CGImageRef CGImageSourceCreateImageAtIndex(CGImageSourceRef self,size_t index,CFDictionaryRef options) {
return [self createImageAtIndex:index options:options];
}

CFDictionaryRef CGImageSourceCopyPropertiesAtIndex(CGImageSourceRef self, size_t index,CFDictionaryRef options) {
return (CFDictionaryRef)[self copyPropertiesAtIndex:index options:options];
}

Change log

dcf86a985be1 by Christopher Lloyd <c...@objc.net> on Aug 21, 2011   Diff
Rough in some spell checker classes and
clean up warnings
Go to: 
Project members, sign in to write a code review

Older revisions

d2985cc118cd by airy on May 28, 2011   Diff
Missing CGImageSourceCreateWithURL API
f30bdd81638f by Christopher Lloyd <c...@objc.net> on Oct 21, 2010   Diff
CGPattern work and cleanup
ca790b6ad721 by Christopher Lloyd <cocotron> on Mar 31, 2010   Diff
split Onyx2D out of CoreGraphics
All revisions of this file

File info

Size: 922 bytes, 25 lines
Powered by Google Project Hosting