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

CGAffineTransformMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: A class for an affine transformation.
Example:
dim af as CGAffineTransformMBS = CGAffineTransformMBS.Identity

MsgBox str(af.A)+" "+str(af.b)+" "+str(af.c)+" "+str(af.d)+" "+str(af.tx)+" "+str(af.ty)

af = af.Scale( 1, -1 )

MsgBox str(af.A)+" "+str(af.b)+" "+str(af.c)+" "+str(af.d)+" "+str(af.tx)+" "+str(af.ty)

af = af.Translate( 0, 100 )

MsgBox str(af.A)+" "+str(af.b)+" "+str(af.c)+" "+str(af.d)+" "+str(af.tx)+" "+str(af.ty)

dim r1 as CGRectMBS
dim r2 as CGRectMBS

r1=CGMakeRectMBS(100,100,100,100)

r2=r1.ApplyAffineTransform(af)

MsgBox "("+str(r1.Left)+", "+str(r1.top)+", "+str(r1.width)+", "+str(r1.height)+") => ("+str(r2.Left)+", "+str(r2.top)+", "+str(r2.width)+", "+str(r2.height)+")"

Feedback, Comments & Corrections

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples which use this class:


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


CFXMLProcessingInstructionInfoMBS   -   CGBitmapContextMBS




Links
MBS Xojo Plugins