Platforms to show: All Mac Windows Linux Cross-Platform

CIImageMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreImage MBS MacCI Plugin 7.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The class for a CoreImage Image object.
Example
// take a picture and scale it
Var pic As Picture = LogoMBS(500)
Var image As CIImageMBS = CIImageMBS.imageWithPicture(pic)

Var filter As New CIFilterLanczosScaleTransformMBS

Const targetWidth = 600.0
Const targetHeight = 400.0

Var scale As Double = targetHeight / image.Extent.Height
Var aspect As Double = targetWidth / (image.Extent.Width * scale)

filter.inputImage = image
filter.inputScale = scale
filter.inputAspectRatio = aspect

Var result As Picture = filter.outputImage.RenderPicture

Backdrop = result

Constants

Constant Value Description
kCIFormatARGB8 23 One of the pixel formats: 32bpp, fixed point.
kCIFormatRGBA16 27 One of the pixel formats: 64bpp, fixed point.
kCIFormatRGBAf 34 One of the pixel formats: 128bpp, floating point.

This class has no sub classes.

Some useful global functions for this class:

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


CIFilterZoomBlurMBS   -   CIPDF417CodeDescriptorMBS


The biggest plugin in space...