[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[apple,CoreImage] methods

See also



! CIColor class methodsFor: #instantiation !
withCGColor: c

	^self @ (self nativeClass instanceWithCGColor: c handle)! !

! CIColor class methodsFor: #instantiation !
withColor: anUIColor

	^self @ (self nativeClass instanceWithColor: anUIColor handle)! !

! CIColor class methodsFor: #instantiation !
withRed: r green: g blue: b

	^self @ (self nativeClass instanceWithRed: r green: g blue: b)! !

! CIColor class methodsFor: #instantiation !
withRed: r green: g blue: b alpha: alpha

	^self @ (self nativeClass instanceWithRed: r green: g blue: b alpha: alpha)! !

! CIColor class methodsFor: #instantiation !
withString: aString

	^self @ (self nativeClass colorWithString: aString)! !

CIColor buildGetters: #(
	stringRepresentation
)!
CIColor buildTypedGetters: #(
	#(colorSpace #CGColorSpaceRef)
)!
CIColor buildNumberGetters: #(
	numberOfComponents
	red green blue alpha
)!


! CIContext class methodsFor: #instantiation !
withCGContext: aCGContextRef options: aNSDict

	^self @ (self nativeClass contextWithCGContext: aCGContextRef handle options: aNSDict json)! !

! CIContext class methodsFor: #instantiation !
withEAGLContext: eaglContext

	^self @ (self nativeClass contextWithEAGLContext: eaglContext handle)! !

! CIContext class methodsFor: #instantiation !
withEAGLContext: eaglContext options: aString

	^self @ (self nativeClass contextWithEAGLContext: eaglContext handle options: aString)! !

! CIContext class methodsFor: #instantiation !
withOptions: aDict

	^self @ (self nativeClass contextWithOptions: aDict json)! !

! CIContext class methodsFor: #instantiation !
withMTLDevice: device

	^self @ (self nativeClass contextWithMTLDevice: device handle)! !

! CIContext class methodsFor: #instantiation !
withMTLDevice: device options: options

	^self @ (self nativeClass contextWithMTLDevice: device handle options: options json)! !

CIContext buildFunctions: #(
	#(#createCGImage:fromRect: #(#(aCIImage handle) #(aCGRect handle)) #CGImage)
	#(#createCGImage:fromRect:format:colorSpace: #(#(aCIImage handle) #(aCGRect handle) format #(aCGColorSpace handle)) #CGImage)
	#(#drawImage:inRect:fromRect: #(#(aCIImage handle) #(destRect handle) #(srcRect handle)))
)!
CIContext buildTypedAccessors: #(
	#(inputImageMaximumSize #CGSize)
	#(outputImageMaximumSize #CGSize)
)!
CIContext buildTypedGetters: #(
	#(workingColorSpace #CGColorSpace)
)!


! CIDetector class methodsFor: #instantiation !
ofType: type context: context options: options

	^self @ (self nativeClass detectorOfType: type context: context handle options: options json)! !

CIDetector buildFunctions: #(
	#(#featuresInImage: #(#(aCIImage handle)) )
	#(#featuresInImage:options: #(#(aCIImage handle) #(options json)) )
)!

! CIDetector methodsFor: #accessing !
featuresIn: aCIImage
	^(self featuresInImage: aCIImage) collect: [:each| CIFeature @ each ]! !

! CIDetector methodsFor: #accessing !
featuresIn: aCIImage options: options
	^(self featuresInImage: aCIImage options: options) collect: [:each| CIFeature @ each ]! !

CIFeature buildTypedGetters: #(
	#(bounds #CGRect)
)!
CIFeature buildGetters: #(
	type
)!