Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CGAffineTransformMBS.Binary as MemoryBlock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Returns the binary data of the object for toolbox calls.

Feedback, Comments & Corrections

CGAffineTransformMBS.Concat(t as CGAffineTransformMBS) as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Concatenate 't2' to 't1' and returne the result: t' = t1 * t2

Feedback, Comments & Corrections

CGAffineTransformMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: This constructor creates the identity transform: [ 1 0 0 1 0 0 ].

See also:

Feedback, Comments & Corrections

CGAffineTransformMBS.Constructor(a as Double, b as Double, c as Double, d as Double, tx as Double, ty as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Creates the transformation with the given values.

See also:

Feedback, Comments & Corrections

CGAffineTransformMBS.Constructor(p as Ptr)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 17.1 Yes No No Yes, macOS only No
Function: Creates a new instance using data at the pointer.
Notes: Make sure the pointer is valid and has the right data and size.

See also:

Feedback, Comments & Corrections

CGAffineTransformMBS.EqualToTransform(t as CGAffineTransformMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Checks whether two affine transforms are equal.
Notes:
Returns true if t1 and t2 are equal, false otherwise.
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

CGAffineTransformMBS.Invert as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Invert 't' and return the result. If 't' has zero determinant, then 't' is returned unchanged.

Feedback, Comments & Corrections

CGAffineTransformMBS.IsIdentity as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Checks whether an affine transform is the identity transform.
Notes:
Returns true if t is the identity transform, false otherwise.
Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

CGAffineTransformMBS.Rotate(angle as Double) as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Rotate 't' by 'angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t

Feedback, Comments & Corrections

CGAffineTransformMBS.Scale(sx as Double, sy as Double) as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Scale 't' by '(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t

Feedback, Comments & Corrections

CGAffineTransformMBS.Translate(tx as Double, ty as Double) as CGAffineTransformMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 3.4 Yes No No Yes, macOS only No
Function: Translate 't' by '(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t
Example:
dim t as new CGAffineTransformMBS(1,0,0,1,1,1)
t=t.Translate(2,3)

MsgBox str(T.A)+" "+str(t.B)+" "+str(t.C)+" "+str(t.D)+" "+str(t.TX)+" "+str(t.TY)

// shows 1 0 0 1 3 4

Feedback, Comments & Corrections

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




Links
MBS Xojo blog