Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

NewCIColorMBS(red as single, green as single, blue as single, alpha as single=1.0) as CIColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new color based on the given values.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIColorWithCGColorMBS(CGColor as Variant) as CIColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new CIColor based on the given CoreGraphics color.
Notes:
CGColor parameter must be a CGColorMBS object.
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIColorWithStringMBS(s as String) as CIColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new CIColor based on the given string.
Example:
dim c as CIColorMBS

c=NewCIColorWithStringMBS("1 0.5 0 1")

MsgBox c.stringRepresentation // shows "1 0.5 0 1"
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIContextMBS(cgcontext as CGContextMBS) as CIContextMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Create a new CoreImage context object without options, all output will be drawn into the CG context.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIContextMBS(cgcontext as CGContextMBS, OutputColorSpace as CGColorSpaceMBS, WorkingColorSpace as CGColorSpaceMBS, UseSoftwareRenderer as Boolean) as CIContextMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Create a new CoreImage context object with options, all output will be drawn into the CG context.
Notes:
OutputColorSpace: A CGColorSpaceMBS object defining the color space in which all intermediate operations are performed.
WorkingColorSpace: A CGColorSpaceRef object defining the color space that images are converted to before rendering into the context.
UseSoftwareRenderer: Whether you want software renderer only.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIImagewithBitmapDataMBS(data as memoryblock, BytesPerRow as Integer, Width as Integer, Height as Integer, Format as Integer, colorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage from a RAW memory buffer.
Notes:
Format must be one of this constants: kCIFormatRGBAf, kCIFormatRGBA16 and kCIFormatARGB8.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIImagewithBitmapMemoryMBS(data as memoryblock, DataLength as Integer, BytesPerRow as Integer, Width as Integer, Height as Integer, Format as Integer, colorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage from a RAW memory buffer.
Notes:
Data points directly to the row data.
Length is the size of the memoryblock in bytes.
BytesPerRow is the size of a row in bytes.
Width and height are the dimensions of the image.
Format must be one of this constants: kCIFormatRGBAf, kCIFormatRGBA16 and kCIFormatARGB8.
Colorspace is the CoreGraphics Colorspace object to be used.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIImagewithCGImageMBS(cgimage as CGImageMBS, cgcolorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a CGImage.
Notes:
cgcolorspace: Use this colorspace when opening the image.
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIImagewithCGImageMBS(cgimage as CGImageMBS, options as dictionary = nil) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a CGImage.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIImagewithDataMBS(Data as memoryblock, cgcolorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on the image file content stored inside the data string.
Notes:
cgcolorspace: Use this colorspace when opening the image.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCIImagewithDataMBS(Data as Memoryblock, Options as Dictionary = nil) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on the image file content stored inside the data string.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCIImagewithFileMBS(file as folderitem) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a the content of the file.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

In plugin version 7.5 and Mac OS X 10.4.10 this method leaks the data because of a bug in the framework.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIImagewithFileMBS(file as folderitem, cgcolorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a the content of the file.
Notes:
cgcolorspace: Use this colorspace when opening the image.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

In plugin version 7.5 and Mac OS X 10.4.10 this method leaks the data because of a bug in the framework.

See also:

Some examples using this method:

Feedback, Comments & Corrections

NewCIImagewithURLMBS(url as String) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a the content of the file where the URL points to.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCIImagewithURLMBS(url as String, cgcolorspace as CGColorSpaceMBS) as CIImageMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a CIImage based on a the content of the file where the URL points to.
Notes:
cgcolorspace: Use this colorspace when opening the image.

Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCISamplerMBS(ciImage as CIImageMBS) as CISamplerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new sampler based on the given image.
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCISamplerMBS(ciImage as CIImageMBS, matrix as NSAffineTransformMBS, WrapMode as String, FilterMode as string) as CISamplerMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new sampler based on the given image.
Notes:
matrix:An affine transformation [a b c d tx ty] defining the transformation to be applied to the sampler.
wrapmode:A string defining how pixels outside the sampler's extent are produced. Options include kCISamplerWrapBlack (pixels are transparent black, the default) and kCISamplerWrapClamp (coordinates are clamped to the extent).
FilterMode:A string defining the filter to use when sampling the image. One of kCISamplerFilterNearest (point sampling) or kCISamplerFilterLinear (bilinear interpolation, the default).

Returns nil on any error.
Requires Mac OS X 10.4 to work.

See also:

Feedback, Comments & Corrections

NewCIVectorWithStringMBS(s as string) as CIVectorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new vector based on content of the string.
Example:
dim v as CIVectorMBS
v=NewCIVectorWithStringMBS("[1 2 3]")
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIVectorWithXMBS(x as Double) as CIVectorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new vector based on one value.
Example:
dim x as Double = 1
dim v as CIVectorMBS
v=NewCIVectorWithXMBS(x)
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIVectorWithXYMBS(x as Double, y as Double) as CIVectorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new vector based on two values.
Example:
dim x as Double = 1
dim y as Double = 2
dim v as CIVectorMBS
v=NewCIVectorWithXYMBS(x,y)
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIVectorWithXYZMBS(x as Double, y as Double, z as Double) as CIVectorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new vector based on three values.
Example:
dim x as Double = 1
dim y as Double = 2
dim z as Double = 3
dim v as CIVectorMBS
v=NewCIVectorWithXYZMBS(x,y,z)
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

NewCIVectorWithXYZWMBS(x as Double, y as Double, z as Double, w as Double) as CIVectorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreImage MBS MacCG Plugin 7.3 Yes No No Yes, macOS only No
Function: Creates a new vector based on 4 values.
Example:
dim x as Double = 1
dim y as Double = 2
dim z as Double = 3
dim w as Double = 4
dim v as CIVectorMBS
v=NewCIVectorWithXYZWMBS(x,y,z,w)
Notes:
Returns nil on any error.
Requires Mac OS X 10.4 to work.

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins