Platforms to show: All Mac Windows Linux Cross-Platform

CIVectorMBS 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 vector in the CoreImage world.
Example
// vectors are used to pass points and rectangles to Core Image filters
Var image As New CIImageMBS(SpecialFolder.Desktop.Child("test.jpg"))
Var extent As CGRectMBS = image.Extent

// darken the corners around the center of the picture
Var vignette As New CIFilterVignetteEffectMBS
vignette.inputImage = image
vignette.inputCenter = CIVectorMBS.vectorWithXY(extent.MidX, extent.MidY)
vignette.inputRadius = extent.Width / 2
vignette.inputIntensity = 1.0

// crop to the left half: x, y, width and height
Var crop As New CIFilterCropMBS
crop.inputImage = vignette.outputImage
crop.inputRectangle = New CIVectorMBS(0, 0, extent.Width / 2, extent.Height)

Var context As New CIContextMBS
Var error As NSErrorMBS
If Not context.writePNGRepresentationOfImage(crop.outputImage, SpecialFolder.Desktop.Child("result.png"), error) Then
MessageBox error.localizedDescription
End If

May contain one to four floating point values.

This class has no subclasses.

Blog Entries

Some useful global functions for this class:

Some properties using this class:

Some examples using this class:

Some related classes:


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


CITextFeatureMBS   -   CKAcceptSharesOperationMBS


The biggest plugin in space...