Platforms to show: All Mac Windows Linux Cross-Platform

CGContextMBS.SetAlpha(alpha as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the alpha value in the current graphics state to alpha.

Feedback, Comments & Corrections

CGContextMBS.SetCharacterSpacing(spacing as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the current character spacing to 'spacing'.
Notes: The character spacing is added to the displacement between the origin of one character and the origin of the next.

Feedback, Comments & Corrections

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 Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the fill color to a CMYK color.
Notes: colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

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 Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the stroke color to a CMYK color.
Notes: colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

CGContextMBS.SetFlatness(flatness as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the path flatness parameter in the current graphics state to flatness.

Feedback, Comments & Corrections

CGContextMBS.SetFontSize(size as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the current font size to 'size'.

Feedback, Comments & Corrections

CGContextMBS.SetGrayFillColor(gray as Double, alpha as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the fill color to a gray color.
Notes: gray is from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

CGContextMBS.SetGrayStrokeColor(gray as Double, alpha as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the stroke color to a gray color.
Notes: gray is from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

CGContextMBS.SetLineCap(cap as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the line cap in the current graphics state to cap.

Feedback, Comments & Corrections

CGContextMBS.SetLineJoin(join as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the line join in the current graphics state to join.

Feedback, Comments & Corrections

CGContextMBS.SetLineWidth(width as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the line width in the current graphics state to width.
Example:
Dim p As ptr = g.Handle(Graphics.HandleTypes.CGContextRef)
Dim c As CGContextMBS = CGContextMBS.contextWithCGContext(p)
Notes:
Dim h As Integer = g.Handle(g.HandleTypeCGContextRef)
Dim c As CGContextMBS = CGContextMBS.contextWithCGContext(h)

Feedback, Comments & Corrections

CGContextMBS.SetMiterLimit(limit as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the miter limit in the current graphics state to limit.

Feedback, Comments & Corrections

CGContextMBS.SetRenderingIntent(intent as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the rendering intent in the graphics state to 'intent'.
Notes:
Possible values for intent:

kCGRenderingIntentDefault0
kCGRenderingIntentAbsoluteColorimetric1
kCGRenderingIntentRelativeColorimetric2
kCGRenderingIntentPerceptual3
kCGRenderingIntentSaturation4

Feedback, Comments & Corrections

CGContextMBS.SetRGBFillColor(red as Double, green as Double, blue as Double, alpha as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the fill color to a RGB color.
Notes: colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

CGContextMBS.SetRGBStrokeColor(red as Double, green as Double, blue as Double, alpha as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Sets the stroke color to a RGB color.
Notes: colors are from 0 to 1 and alpha is from 0 (transparent) to 1 (solid).

Feedback, Comments & Corrections

CGContextMBS.SetShouldAntialias(shouldAntialias as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Turn off antialiasing if 'shouldAntialias' is zero; turn it on otherwise.
Notes: This parameter is part of the graphics state.

Feedback, Comments & Corrections

CGContextMBS.SetTextDrawingMode(mode as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method CoreGraphics MBS MacCG Plugin 2.7 Yes No No Yes, macOS only No
Function: Set the text drawing mode to 'mode'.
Notes:
Possible values:

kCGTextFill 0
kCGTextStroke 1
kCGTextFillStroke 2
kCGTextInvisible 3
kCGTextFillClip 4
kCGTextStrokeClip 5
kCGTextFillStrokeClip6
kCGTextClip 7

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo Chart Plugins