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

CIFilterAffineTransformMBS class

Super class: CIFilterMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreImage MBS MacCG Plugin 17.4 Yes No No Yes, macOS only No
Function: The Realbasic class for the CoreImage Affine Transform filter.
// Rotate image with CoreImage

// load image
dim f as FolderItem = SpecialFolder.Desktop.Child("test.png")
dim image as new CIImageMBS(f)

// rotate 45 degree
dim n as new NSAffineTransformMBS

dim TransformFilter as new CIFilterAffineTransformMBS
TransformFilter.inputImage = image
TransformFilter.inputTransform = n

// get result
dim resultImage as CIImageMBS = TransformFilter.outputImage

// for saving to file
dim outputImage as NSImageMBS = resultImage.RenderNSImage(false)

f = SpecialFolder.Desktop.Child("output.png")
dim b as BinaryStream = BinaryStream.Create(f, true)
b.Write outputImage.PNGRepresentation

// as Real Studio picture object for display
dim pic as Picture = outputImage.CopyPictureWithMask

Backdrop = pic
Details for this filter:

DisplayName English:Affine Transform
DisplayName German:Affin transformieren
DisplayName French:Affiner, transformer
DisplayName Italian:Trasformazione affine
DisplayName Spanish:Transformación afín

  • CICategoryGeometryAdjustment: Geometry Adjustment
  • CICategoryVideo: Video
  • CICategoryStillImage: Still Image
  • CICategoryBuiltIn: Built-In

  • inputImage: Image
  • inputTransform: Transform

  • outputImage
Subclass of the CIFilterMBS class.

Feedback, Comments & Corrections

Super class CIFilterMBS

This class has no sub classes.

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

CIFilterAffineTileMBS   -   CIFilterAreaAverageMBS

MBS FileMaker Plugins