Platforms to show: All Mac Windows Linux Cross-Platform

Back to CIImageMBS class.

CIImageMBS.Constructor(CGLayer as CGLayerMBS, options as Dictionary = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Creates and returns an image object from the contents supplied by a CGLayer object, using the specified options.

layer: A CGLayer object. For more information see Quartz 2D Programming Guide and CGLayer Reference.
options: A dictionary specifying image options.

Returns an image object initialized with the contents of the layer object and set up with the specified options.

See also:

CIImageMBS.Constructor(data as Memoryblock, Length as Integer, BytesPerRow as Integer, width as Integer, height as Integer, format as Integer, cgcolorspace as CGColorSpaceMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 7.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a CIImage from a RAW memory buffer.

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.

On success, the handle is not zero.

See also:

CIImageMBS.copy as CIImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the image.

CIImageMBS.CreateCGImage(r as CGRectMBS = nil) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new image with the content of the CIImage.
Example
Var logo as Picture = LogoMBS(500)
Var ci as CIImageMBS = CIImageMBS.imageWithPicture(logo)
Var cg as CGImageMBS = ci.CreateCGImage
Backdrop = cg.Picture

Render the region 'r' of image 'im' into a temporary buffer using the context, then create and return a new CoreGraphics image with the results.
If r is nil, the whole image extent is used.

See also:

CIImageMBS.CreateCGImage(r as CGRectMBS, ColorSpace as CGColorSpaceMBS) as CGImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new image with the content of the CIImage.

Render the region 'r' of image 'im' into a temporary buffer using the context, then create and return a new CoreGraphics image with the results.
If r is nil, the whole image extent is used.

See also:

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


The biggest plugin in space...