CIFilterAffineTransformMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

CIFilterAffineTransformMBS class

Super class: CIFilterMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreImage MBS MacCI Plugin 17.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The Xojo class for the CoreImage Affine Transform filter.
Example
// 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
n.rotateByDegrees(45)

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:

FilterName:CIAffineTransform
DisplayName English:Affine Transform
DisplayName German:Affin transformieren
DisplayName French:Transformation affine
DisplayName Italian:Trasformazione affine
DisplayName Spanish:Transformación afín

Categories:

Input:

Output:
Subclass of the CIFilterMBS class.

Super class CIFilterMBS

This class has no sub classes.

Blog Entries


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


CIFilterAffineTileMBS   -   CIFilterAreaAverageMBS


💬 Ask a question or report a problem