Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CDDrawAreaMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class ChartDirector MBS ChartDirector Plugin 8.2 Yes Yes Yes Yes No
Function: The DrawArea class represents drawing surfaces, with methods for performing graphics primitives (such as drawing lines, shapes and texts) and the surfaces.
Notes:
All ChartDirector chart objects contains an internal DrawArea object for drawing the charts. This DrawArea object is accessible via BaseChart.getDrawArea or BaseChart.makeChart. This allows developers to apply custom graphics operations on the charts.

ChartDirector also supports creating standalone DrawArea objects by calling the DrawArea.DrawArea constructor. One common application is to use ChartDirector as a general purpose graphics library (e.g. adding text annotations to existing images, creating GIF buttons on the fly, etc).

Feedback, Comments & Corrections

  • 128 methods
    • method adjustBrightness(c as Integer, brightness as Double) as Integer
    • method 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)
    • method 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)
    • method arc(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, c as Integer)
    • method circle(cx as Integer, cy as Integer, rx as Integer, ry as Integer, edgeColor as color, fillColor as color)
    • method circle(cx as Integer, cy as Integer, rx as Integer, ry as Integer, edgeColor as Integer, fillColor as Integer)
    • method 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)
    • method Constructor
    • method 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)
    • method 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)
    • method dashLineColor(colorvalue as color, patternCode as Integer = &h0505) as Integer
    • method dashLineColor(colorvalue as Integer, patternCode as Integer = &h0505) as Integer
    • method enableVectorOutput
    • method fill(x as Integer, y as Integer, colorvalue as color)
    • method fill(x as Integer, y as Integer, colorvalue as color, borderColor as color)
    • method fill(x as Integer, y as Integer, colorvalue as Integer)
    • method fill(x as Integer, y as Integer, colorvalue as Integer, borderColor as Integer)
    • method getARGBColor(c as Integer) as Integer
    • method getHeight as Integer
    • method getPixel(x as Integer, y as Integer) as Integer
    • method getWidth as Integer
    • method gradientColor(colors() as color, angle as Double = 90, scale as Double = 1.0, startX as Integer = 0, startY as Integer = 0) as Integer
    • method gradientColor(colors() as Integer, angle as Double = 90, scale as Double = 1.0, startX as Integer = 0, startY as Integer = 0) as Integer
    • method gradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as color, endColor as color) as Integer
    • method gradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as Integer, endColor as Integer) as Integer
    • method halfColor(c as Integer) as Integer
    • method hCylinderTransform(yDiameter as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method hCylinderTransform(yDiameter as Integer, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method hFlip
    • method hline(x1 as Integer, x2 as Integer, y as Integer, c as Integer)
    • method hTriangleTransform(tWidth as Integer = -1, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method hTriangleTransform(tWidth as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method initDynamicLayer
    • method line(x1 as Double, y1 as Double, x2 as Double, y2 as Double, colorValue as color, lineWidth as Integer = 1)
    • method line(x1 as Double, y1 as Double, x2 as Double, y2 as Double, colorValue as Integer, lineWidth as Integer = 1)
    • method linearGradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, colors() as color, periodic as boolean=false) as Integer
    • method linearGradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, colors() as Integer, periodic as boolean=false) as Integer
    • method linearGradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as color, endColor as color, periodic as boolean=false) as Integer
    • method linearGradientColor(startX as Integer, startY as Integer, endX as Integer, endY as Integer, startColor as Integer, endColor as Integer, periodic as boolean=false) as Integer
    • method load(path as string) as boolean
    • method loadGIF(path as string) as boolean
    • method loadJPG(path as string) as boolean
    • method loadPNG(path as string) as boolean
    • method loadWMP(path as string) as boolean
    • method merge(d as CDDrawAreaMBS, x as Integer, y as Integer, align as Integer, transparency as Integer)
    • method move(xOffset as Double, yOffset as Double, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method move(xOffset as Double, yOffset as Double, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method out(file as folderitem) as boolean
    • method outBMP as string
    • method outBMP(file as folderitem) as boolean
    • method outGIF as string
    • method outGIF(file as folderitem) as boolean
    • method outJPG(file as folderitem, quality as Integer = 80) as boolean
    • method outJPG(quality as Integer = 80) as string
    • method outPDF as string
    • method outPDF(file as folderitem) as boolean
    • method outPicture as picture
    • method outPNG as string
    • method outPNG(file as folderitem) as boolean
    • method outSVG(file as folderitem, options as string = "") as boolean
    • method outSVG(options as string = "") as string
    • method outWMP as string
    • method outWMP(file as folderitem) as boolean
    • method patternColor(colors() as color, height as Integer, startX as Integer = 0, startY as Integer = 0) as Integer
    • method patternColor(colors() as Integer, height as Integer, startX as Integer = 0, startY as Integer = 0) as Integer
    • method patternColor(file as folderitem, startX as Integer = 0, startY as Integer = 0) as Integer
    • method Pixel(x as Integer, y as Integer, c as Integer)
    • method polygon(x() as Double, y() as Double, edgeColor as color, fillColor as color)
    • method polygon(x() as Double, y() as Double, edgeColor as Integer, fillColor as Integer)
    • method polygon(x() as Integer, y() as Integer, edgeColor as color, fillColor as color)
    • method polygon(x() as Integer, y() as Integer, edgeColor as Integer, fillColor as Integer)
    • method radialGradientColor(cx as Integer, cy as Integer, rx as Integer, ry as Integer, data() as Integer, periodic as boolean=false) as Integer
    • method radialGradientColor(cx as Integer, cy as Integer, rx as Integer, ry as Integer, startColor as color, endColor as color, periodic as boolean=false) as Integer
    • method radialGradientColor(cx as Integer, cy as Integer, rx as Integer, ry as Integer, startColor as Integer, endColor as Integer, periodic as boolean=false) as Integer
    • method rAffineTransform(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)
    • method rAffineTransform(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)
    • method rect(x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer, edgeColor as color, fillColor as color, raisedEffect as Integer = 0)
    • method rect(x1 as Integer, y1 as Integer, x2 as Integer, y2 as Integer, edgeColor as Integer, fillColor as Integer, raisedEffect as Integer = 0)
    • method reduceColors(colorCount as Integer, blackAndWhite as boolean=false) as Integer
    • method removeDynamicLayer(keepOriginal as boolean = false)
    • method resize(newWidth as Integer, newHeight as Integer, filter as Integer = 1, blur as Double = 1.0)
    • method ring(cx as Integer, cy as Integer, rx as Integer, ry as Integer, rx2 as Integer, ry2 as Integer, edgeColor as color, fillColor as color)
    • method ring(cx as Integer, cy as Integer, rx as Integer, ry as Integer, rx2 as Integer, ry2 as Integer, edgeColor as Integer, fillColor as Integer)
    • method ringSector(cx as Integer, cy as Integer, rx as Integer, ry as Integer, rx2 as Integer, ry2 as Integer, a1 as Double, a2 as Double, edgeColor as color, fillColor as color)
    • method ringSector(cx as Integer, cy as Integer, rx as Integer, ry as Integer, rx2 as Integer, ry2 as Integer, a1 as Double, a2 as Double, edgeColor as Integer, fillColor as Integer)
    • method rotate(angle as Double, bgColor as color, cx as Double = -1, cy as Double = -1, filter as Integer = 2, blur as Double = 1.0)
    • method rotate(angle as Double, bgColor as Integer = &hFFFFFF, cx as Double = -1, cy as Double = -1, filter as Integer = 2, blur as Double = 1.0)
    • method sector(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, edgeColor as color, fillColor as color)
    • method sector(cx as Integer, cy as Integer, rx as Integer, ry as Integer, a1 as Double, a2 as Double, edgeColor as Integer, fillColor as Integer)
    • method setAntiAlias(shapeAntiAlias as boolean=true, textAntiAlias as Integer = 2)
    • method setAntiAliasText(value as Integer)
    • method setBgColor(c as color)
    • method setBgColor(c as Integer)
    • method setClipRect(left as Integer, top as Integer, right as Integer, bottom as Integer)
    • method setColorTable(colors() as color, offset as Integer)
    • method setColorTable(colors() as Integer, offset as Integer)
    • method setDefaultFonts(normal as string, bold as string, italic as string, boldItalic as string)
    • method setDitherMethod(value as Integer)
    • method setFontTable(index as Integer, font as string)
    • method setInterlace(value as boolean)
    • method setOutputOptions(options as string)
    • method setPaletteMode(value as Integer)
    • method setSearchPath(path as string)
    • method setSize(width as Integer, height as Integer, bgColor as color)
    • method setSize(width as Integer, height as Integer, bgColor as Integer = &hFFFFFF)
    • method setTransparentColor(value as color)
    • method setTransparentColor(value as Integer)
    • method shearTransform(xShear as Double, yShear as Double = 0, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method shearTransform(xShear as Double, yShear as Double, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method sphereTransform(xDiameter as Integer, yDiameter as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method sphereTransform(xDiameter as Integer, yDiameter as Integer, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method surface(cx1 as Double, y1 as Double, x2 as Double, y2 as Double, depthX as Integer, depthY as Integer, edgeColor as color, fillColor as color)
    • method surface(cx1 as Double, y1 as Double, x2 as Double, y2 as Double, depthX as Integer, depthY as Integer, edgeColor as Integer, fillColor as Integer)
    • method text(str as string, font as string, fontIndex as Integer, fontHeight as Double, fontWidth as Double, angle as Double, vertical as boolean) as CDTTFTextMBS
    • method 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 color, alignment as Integer = 7)
    • method 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)
    • method text(str as string, font as string, fontsize as Double) as CDTTFTextMBS
    • method text(str as string, font as string, fontsize as Double, x as Integer, y as Integer, colorvalue as color)
    • method text(str as string, font as string, fontsize as Double, x as Integer, y as Integer, colorvalue as Integer)
    • method tile(d as CDDrawAreaMBS, transparency as Integer)
    • method vCylinderTransform(xDiameter as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method vCylinderTransform(xDiameter as Integer, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method vFlip
    • method vline(y1 as Integer, y2 as Integer, x as Integer, c as Integer)
    • method vTriangleTransform(tHeight as Integer = -1, bgColor as Integer = &hFFFFFF, filter as Integer = 2, blur as Double = 1.0)
    • method vTriangleTransform(tHeight as Integer, bgColor as color, filter as Integer = 2, blur as Double = 1.0)
    • method 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)
    • method 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)

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


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


CDDataSetMBS   -   CDDrawObjMBS




Links
MBS Xojo Plugins