Platforms to show: All Mac Windows Linux Cross-Platform

CIColorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreImage MBS MacCI Plugin 7.3 ✅ Yes ❌ No ❌ No ✅ Yes All
A class for a color in CoreImage.
Example
// create Core Image colors and use one in a filter
Var red As CIColorMBS = CIColorMBS.colorWithRGB(1.0, 0.0, 0.0)
Var transparentBlue As New CIColorMBS(0.0, 0.0, 1.0, 0.5)
Var gray As CIColorMBS = CIColorMBS.colorWithString("0.5 0.5 0.5 1.0")

MessageBox "Red: " + red.StringRepresentation + EndOfLine + _
"Blue alpha: " + transparentBlue.Alpha.ToString + EndOfLine + _
"Gray components: " + gray.NumberOfComponents.ToString

// create a picture filled with a color
Var generator As New CIFilterConstantColorGeneratorMBS
generator.inputColor = red
Var crop As New CIFilterCropMBS
crop.inputImage = generator.outputImage
crop.inputRectangle = New CIVectorMBS(0, 0, 100, 100)
Var pic As Picture = crop.outputImage.RenderPicture

This class has no subclasses.

Blog Entries

Some useful global functions for this class:

Some methods using this class:

Some properties using this class:

Some related classes:


The items on this page are in the following plugins: MBS MacCI Plugin.


CIBarcodeDescriptorMBS   -   CIContextMBS


The biggest plugin in space...