Platforms to show: All Mac Windows Linux Cross-Platform
Back to CGContextMBS class.
CGContextMBS.SetAlpha(alpha as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some examples using this method:
CGContextMBS.SetCharacterSpacing(spacing as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The character spacing is added to the displacement between the origin of one character and the origin of the next.
CGContextMBS.SetCMYKFillColor(cyan as Double, magenta as Double, yellow as Double, black as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
CGContextMBS.SetCMYKStrokeColor(cyan as Double, magenta as Double, yellow as Double, black as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
CGContextMBS.SetFlatness(flatness as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetFontSize(size as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetGrayFillColor(gray as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
gray is from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
Some examples using this method:
CGContextMBS.SetGrayStrokeColor(gray as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
gray is from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
Some examples using this method:
CGContextMBS.SetLineCap(cap as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetLineJoin(join as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetLineWidth(width as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetMiterLimit(limit as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CGContextMBS.SetRenderingIntent(intent as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Possible values for intent:
kCGRenderingIntentDefault | 0 |
kCGRenderingIntentAbsoluteColorimetric | 1 |
kCGRenderingIntentRelativeColorimetric | 2 |
kCGRenderingIntentPerceptual | 3 |
kCGRenderingIntentSaturation | 4 |
CGContextMBS.SetRGBFillColor(red as Double, green as Double, blue as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
Some examples using this method:
- /MacCG/Carbon Print Manager/Carbon Print Hello
- /MacCG/CG Ovals
- /MacCG/CoreGraphics Bitmap
- /MacCG/CoreGraphics DirectDisplay/Capture Screen with CGContextMBS
- /MacCG/CoreGraphics PDF/PDF Font list
- /MacCG/CoreGraphics PDF/PDF Text
- /MacCG/CoreGraphics PDF/PDF Transparency
- /MacCG/CoreGraphics PDF/PDF using Save and Restore
- /MacCG/CoreGraphics PDF/PDF with paths and gradient
- /MacCG/CoreGraphics PDF/Simple Make PDF
CGContextMBS.SetRGBStrokeColor(red as Double, green as Double, blue as Double, alpha as Double = 1.0)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).
Some examples using this method:
CGContextMBS.SetShouldAntialias(shouldAntialias as boolean)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This parameter is part of the graphics state.
CGContextMBS.SetTextDrawingMode(mode as Integer)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Possible values:
kCGTextFill | 0 |
kCGTextStroke | 1 |
kCGTextFillStroke | 2 |
kCGTextInvisible | 3 |
kCGTextFillClip | 4 |
kCGTextStrokeClip | 5 |
kCGTextFillStrokeClip | 6 |
kCGTextClip | 7 |
Some examples using this method:
The items on this page are in the following plugins: MBS MacCG Plugin.