Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

CDDrawAreaMBS.adjustBrightness(c as Integer, brightness as Double) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 9.2 Yes Yes Yes Yes No
Function: Creates a color that is a darkened or brightened version of the given color.
Notes:
A brightness less than 1 means the color is darkened, while a brightness greater than 1 means the color is brightened. For example, a brightness of 0.5 means the color is half as bright as the original color. If the original color is red, the color will become dark red. Conversely, a brightness of 2 means the color is twice as bright as the original color. If the original color is red, the color will become light red.

Arguments:
ArgumentDefaultDescription
c(Mandatory)The given color.
brightness(Mandatory)A non-negative number represent the factor to darken or brighten the color.

Return Value
A 32-bit integer representing the darkened or brightened color.

Feedback, Comments & Corrections

CDDrawAreaMBS.affineTransform(a as Double, b as Double, c as Double, d as Double, e as Double, f as Double, 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 affineTransform method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.affineTransform(a as Double, b as Double, c as Double, d as Double, e as Double, f as Double, 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: Perform affine transformation on the drawing surface.
Notes:
An affine transformation is an operation where every pixel is copied to another pixel according to the formula.

xDest = a * xSrc + b * ySrc + cyDest = d * xSrc + e * ySrc + f
where (xSrc, ySrc) is a source pixel, and (xDest, yDest) is where it should go to.

Many graphics operation, such as translation, rotation, and resizing, can be considered as a special case of affine transformation.
ArgumentDefaultDescription
a(Mandatory)The parameter 'a' in the coordinate transformation formula "xDest = a * xSrc + b * ySrc + c".
b(Mandatory)The parameter 'b' in the coordinate transformation formula "xDest = a * xSrc + b * ySrc + c".
c(Mandatory)The parameter 'c' in the coordinate transformation formula "xDest = a * xSrc + b * ySrc + c".
d(Mandatory)The parameter 'd' in the coordinate transformation formula "yDest = d * xSrc + e * ySrc + f".
e(Mandatory)The parameter 'e' in the coordinate transformation formula "yDest = d * xSrc + e * ySrc + f".
f(Mandatory)The parameter 'f' in the coordinate transformation formula "yDest = d * xSrc + e * ySrc + f".
bgColorFFFFFFThe background color used to fill destination pixels that are not mapped to any source pixels.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.arc(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, 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 circular or elliptical arc.
Notes:
ArgumentDefaultDescription
cx(Mandatory)The x coordinate of the center of the circle or ellipse.
cy(Mandatory)The y coordinate of the center of the circle or ellipse.
rx(Mandatory)The horizontal radius of the circle or ellipse.
ry(Mandatory)The vertical radius of the circle or ellipse.
a1(Mandatory)The start angle of the arc in degrees. The angle is measured clockwise, with 0 degree being the upward pointing direction.
a2(Mandatory)The end angle of the arc in degrees. The angle is measured clockwise, with 0 degree being the upward pointing direction.
c(Mandatory)The color of the arc.

Feedback, Comments & Corrections

CDDrawAreaMBS.circle(cx as Integer, cy as Integer, rx as Integer, ry as Integer, edgeColor as color, fillColor as color)
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 circle method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.circle(cx as Integer, cy as Integer, rx as Integer, ry as Integer, edgeColor as Integer, fillColor 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 circle or an ellipse.
Notes:
ArgumentDefaultDescription
cx(Mandatory)The x coordinate of the center of the circle or ellipse.
cy(Mandatory)The y coordinate of the center of the circle or ellipse.
rx(Mandatory)The horizontal radius of the circle or ellipse.
ry(Mandatory)The vertical radius of the circle or ellipse.
edgeColor(Mandatory)The border color. To disable border, set the edgeColor the same as the fillColor.
fillColor(Mandatory)The fill color. To disable filling, set the fillColor to Transparent.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.clone(d as CDDrawAreaMBS, x as Integer, y as Integer, align as Integer, newWidth as Integer = -1, newHeight as Integer = -1, 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: Copy the current DrawArea object to another DrawArea object, with optional resizing.
Notes:
ArgumentDefaultDescription
d(Mandatory)The destination DrawArea object where the current DrawArea is copied to.
x(Mandatory)The x coordinate of a reference point in the destination DrawArea object.
y(Mandatory)The y coordinate of a reference point in the destination DrawArea object.
align(Mandatory)The alignment of the current DrawArea relative to the reference point. See Alignment Specification for supported alignment types.
newWidth-1The new width to which the current DrawArea will be resized to before copying. The default value -1 means no resizing.
newHeight-1The new height to which the current DrawArea will be resized to before copying. The default value -1 means no resizing.
filterLinearFilterThe filter to use for re-sampling. (Only applies if there is resizing.)
blur1The blur factor to use for re-sampling. (Only applies if there is resizing.)

Feedback, Comments & Corrections

CDDrawAreaMBS.Constructor
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 DrawArea object.

Feedback, Comments & Corrections

CDDrawAreaMBS.cylinder(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, depthX as Integer, depthY as Integer, edgeColor as color, fillColor as color)
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 cylinder method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.cylinder(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, depthX as Integer, depthY as Integer, edgeColor as Integer, fillColor 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 cylinder surface as the area spanned by moving an arc.
Notes:
ArgumentDefaultDescription
cx(Mandatory)The x coordinate of the center of the circle or ellipse for the arc.
cy(Mandatory)The y coordinate of the center of the circle or ellipse for the arc.
rx(Mandatory)The horizontal radius of the circle or ellipse.
ry(Mandatory)The vertical radius of the circle or ellipse.
a1(Mandatory)The start angle of the arc. The angle is measured clockwise, with 0 degree being the upward pointing direction.
a2(Mandatory)The end angle of the arc. The angle is measured clockwise, with 0 degree being the upward pointing direction.
depthX(Mandatory)The x displacement representing the motion of the arc to span the cylinder.
depthY(Mandatory)The y displacement representing the motion of the arc to span the cylinder.
edgeColor(Mandatory)The border color. To disable border, set the edgeColor the same as the fillColor.
fillColor(Mandatory)The fill color. To disable filling, set the fillColor to Transparent.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.dashLineColor(colorvalue as color, patternCode as Integer = &h0505) as Integer
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 dashLineColor method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.dashLineColor(colorvalue as Integer, patternCode as Integer = &h0505) 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: Creates a dash line color.
Notes:
A dash line color is a dynamic color that switches on and off periodically. When it is used to draw a line, the line will appear as a dash line.

The style of the dash line is defined by a pattern code, which is a 4-byte integer. A value of PPQQRRSS (in hex) means the first PP pixels are turned on, followed by QQ pixels turned off, followed by RR pixels turned on, followed by SS pixels turned off, and then restart from PP again.

ChartDirector comes from several predefined constants for common dash line patterns.

ConstantValue (in Hex)Dash Line Style
DashLine00000505
DotLine00000202
DotDashLine05050205
AltDashLine0A050505

ArgumentDefaultDescription
color(Mandatory)The color to draw the dash line.
patternCodeDashLineA 4-byte integer representing the style of the dash line.
Return Value
A 32-bit integer representing the dash line color.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.enableVectorOutput
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method ChartDirector MBS ChartDirector Plugin 9.2 Yes Yes Yes Yes No
Function: Enables true vector graphics output.
Notes:
By default, when creating the output image, ChartDirector draws directly onto an output buffer representing the bitmap of the image. For example, for a chart 800 x 600 pixels in size, the output buffer may represent a 800 x 600 bitmap. The output buffer size is unchanged no matter how many items are drawn onto it. Even if the output contains 1 million elements (eg. 1 million symbols), the size of the output buffer is still the same.

On the other hand, a true vector output is indefinitely scalable and can be considered as having infinite resolution. To produce a true vector output, it is necessary to remember the graphics operations for every element in the output buffer. The output buffer size is therefore proportional to the number of elements to draw.

This method tells ChartDirector that it needs to remember the graphics operations to prepare for true vector output. If true vector output is needed, this method should be called immediately after creating the DrawArea object.

If this method is not called, and a vector graphics output format is used (such as SVG), instead of a true vector output, ChartDirector will output a raster image using the vector graphics format. (Most vector graphics formats support embedded raster images.)

Feedback, Comments & Corrections

CDDrawAreaMBS.fill(x as Integer, y as Integer, colorvalue as color)
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 fill method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.fill(x as Integer, y as Integer, colorvalue as color, borderColor as color)
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 fill method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.fill(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: Flood fill a region using the specified color.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x coordinate one pixel inside the region to be filled.
y(Mandatory)The y coordinate one pixel inside the region to be filled.
color(Mandatory)The color used to fill the region.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.fill(x as Integer, y as Integer, colorvalue as Integer, borderColor 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: Fill a region using the specified color, where the region is bounded by a given border color.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x coordinate one pixel inside the region to be filled.
y(Mandatory)The y coordinate one pixel inside the region to be filled.
color(Mandatory)The color used to fill the region.
borderColor(Mandatory)The color of the border that bounds the region.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.getARGBColor(c as Integer) 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: Obtain the ARGB color given a palette color.
Notes:
If the given color is already in ARGB format, the same value is returned.
ArgumentDefaultDescription
c(Mandatory)The color to be changed to ARGB format.
Return Value
The ARGB color converted from the given color.

Feedback, Comments & Corrections

CDDrawAreaMBS.getHeight 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: Gets the height of the drawing surface.

Feedback, Comments & Corrections

CDDrawAreaMBS.getPixel(x as Integer, y as Integer) 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: Gets the color of a pixel.
Notes:
ArgumentDefaultDescription
x(Mandatory)The x coordinate of the pixel.
y(Mandatory)The y coordinate of the pixel.
Return Value
The color of the pixel.

Feedback, Comments & Corrections

CDDrawAreaMBS.getWidth 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: Gets the width of the drawing surface.

Feedback, Comments & Corrections

CDDrawAreaMBS.gradientColor(colors() as color, angle as Double = 90, scale as Double = 1.0, startX as Integer = 0, startY as Integer = 0) as Integer
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 gradientColor method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.gradientColor(colors() as Integer, angle as Double = 90, scale as Double = 1.0, startX as Integer = 0, startY as Integer = 0) 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: Creates a multi-point linear gradient color.
Notes:
This method is for backward compatibility. Use DrawArea.linearGradientColor2 instead.
ArgumentDefaultDescription
colorArray(Mandatory)An array defining the positions and colors of the pixels along the reference gradient line segment.
angle90The direction of the reference gradient line segment in degrees, measured clockwise, with 0 degree as the upward pointing direction. The default direction is horizontal from left to right (90 degrees).
scale1.0The scaling factor for the reference gradient line segment. By default, the reference gradient line segment is 256 pixels in length. The scaling factor can be use to stretch or compress the gradient line segment.
startX0The x coordinate of the starting point of the reference gradient line segment.
startY0The y coordinate of the starting point of the reference gradient line segment.
Return Value
A 32-bit integer representing the linear gradient color.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.gradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as color, endColor as color) as Integer
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 gradientColor method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.gradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as Integer, endColor as Integer) 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: Creates a two-point linear gradient color.
Notes:
This method is for backward compatibility. Use DrawArea.linearGradientColor instead.
ArgumentDefaultDescription
startX(Mandatory)The x coordinate of the starting point of the reference gradient line segment.
startY(Mandatory)The y coordinate of the starting point of the reference gradient line segment.
endX(Mandatory)The x coordinate of the ending point of the reference gradient line segment.
endY(Mandatory)The y coordinate of the ending point of the reference gradient line segment.
startColor(Mandatory)The color at the starting point of the reference gradient line segment.
endColor(Mandatory)The color at the ending point of the reference gradient line segment.
Return Value
A 32-bit integer representing the linear gradient color.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.halfColor(c as Integer) 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: Creates a color that is half the intensity of the given color.
Notes:
ArgumentDefaultDescription
c(Mandatory)The given color.
Return Value
A 32-bit integer representing the half intensity color.

Feedback, Comments & Corrections

CDDrawAreaMBS.hCylinderTransform(yDiameter 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 hCylinderTransform method, but uses color instead of integer data type for passing color values.

See also:

Feedback, Comments & Corrections

CDDrawAreaMBS.hCylinderTransform(yDiameter 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 horizontal cylinder.
Notes:
ArgumentDefaultDescription
yDiameter(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.hFlip
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 horizontal line.

Feedback, Comments & Corrections

Next items

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




Links
MBS Xojo PDF Plugins