Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

CDDrawAreaMBS.text(str as string, font as string, fontIndex as Integer, fontHeight as Double, fontWidth as Double, angle as Double, vertical as boolean, x as Integer, y as Integer, colorvalue as Integer, alignment as Integer = 7)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Draws text.
Notes:
ArgumentDefaultDescription
str(Mandatory)A string representing the text to be drawn. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontIndex(Mandatory)The font index in case the font name refers to a font collection. An index of 0 means the first font.
fontHeight(Mandatory)The font height in points.
fontWidth(Mandatory)The font width in points.
angle(Mandatory)The rotation angle of the text. The angle is measured in degrees in clockwise direction.
vertical(Mandatory)A true value means the text is layout vertically (from top to bottom). A false value means the is layout horizontally (from left to right).
x(Mandatory)The x coordinate of a reference point to align the text.
y(Mandatory)The y coordinate of a reference point to align the text.
color(Mandatory)The color of the text.
alignmentTopLeftThe position of the text relative to the reference point. See Alignment Specification for supported alignment types.

See font specification here:
http://www.monkeybreadsoftware.net/faq-chartdirectorfontspecification.shtml

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.text(str as string, font as string, fontsize as Double) as CDTTFTextMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Creates a TTFText object representing a text block.
Notes:
The TTFText object contains methods to measure and draw the text. This method is useful if the size of the text is needed before deciding where the draw it.
ArgumentDefaultDescription
str(Mandatory)A string representing the text to be drawn. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontSize(Mandatory)The font size in points.
Return Value
The TTFText object created.

See font specification here:
http://www.monkeybreadsoftware.net/faq-chartdirectorfontspecification.shtml

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.text(str as string, font as string, fontsize as Double, x as Integer, y as Integer, colorvalue as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Draws text.
Notes:
ArgumentDefaultDescription
str(Mandatory)A string representing the text to be drawn. See ChartDirector Mark Up Language on how to embed special tags in the text for sophisticated formatting.
font(Mandatory)The font name. See Font Specification for details on various font attributes.
fontSize(Mandatory)The font size in points.
x(Mandatory)The x coordinate of the top-left corner of the text.
y(Mandatory)The y coordinate of the top-left corner of the text.
color(Mandatory)The color of the text.

See font specification here:
http://www.monkeybreadsoftware.net/faq-chartdirectorfontspecification.shtml

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.tile(d as CDDrawAreaMBS, transparency as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Copy another DrawArea to the current DrawArea as a wallpaper.
Notes:
The wallpaper image will be tiled repeatedly on the current DrawArea until the entire DrawArea is covered.
ArgumentDefaultDescription
d(Mandatory)A DrawArea object representing the source.
transparency(Mandatory)Specify the transparency level when copying the other DrawArea to the current DrawArea. A value of 0 means non-transparent. A value of 255 means totally transparent.

Feedback, Comments & Corrections

CDDrawAreaMBS.vCylinderTransform(xDiameter as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 11.1 Yes Yes Yes Yes No
Function: Same as the other vCylinderTransform method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.vCylinderTransform(xDiameter as Integer, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Wraps the drawing surface onto a vertical cylinder.
Notes:
ArgumentDefaultDescription
xDiameter(Mandatory)The diameter of the cylinder in pixels.
bgColorFFFFFFThe background color used to fill the space left after transformation.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.vFlip
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Flip the drawing surface along the central vertical line.

Feedback, Comments & Corrections

CDDrawAreaMBS.vline(y1 as Integer, y2 as Integer, x as Integer, c as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Draws a vertical line.
Notes:
ArgumentDefaultDescription
y1(Mandatory)The y coordinate of the first end-point of the line.
y2(Mandatory)The y coordinate of the second end-point of the line.
x(Mandatory)The x coordinate of the line.
c(Mandatory)The color of the line.

Feedback, Comments & Corrections

CDDrawAreaMBS.vTriangleTransform(tHeight as Integer = -1, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Wraps the drawing surface onto a vertical triangle pointing upwards.
Notes:
ArgumentDefaultDescription
tHeight-1The height of the triangle in pixels.
bgColorFFFFFFThe background color used to fill the space left after transformation.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.vTriangleTransform(tHeight as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 11.1 Yes Yes Yes Yes No
Function: Same as the other vTriangleTransform method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.waveTransform(period as Integer, amplitude as Double, direction as Double = 0, startAngle as Double = 0, longitudinal as boolean=false, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: Moves the pixels on the drawing surface according to a sinusoidal function to achieve a wave effect.
Notes:
ArgumentDefaultDescription
period(Mandatory)The period of the wave in pixels.
amplitude(Mandatory)The amplitude of the wave in pixels.
direction0The propagation direction of the wave. The upward pointing direction is 0 degree, and the angle is measured clockwise.
startAngle0The initial phase angle of the wave in degrees.
longitudinalfalseDetermine if the wave is transversal or longitudinal. true means transversal. false means longitudinal.
bgColorFFFFFFThe background color used to fill the space left after transformation.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.waveTransform(period as Integer, amplitude as Double, direction as Double, startAngle as Double, longitudinal as boolean, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 11.1 Yes Yes Yes Yes No
Function: Same as the other waveTransform method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo blog