- Attach
- Arc
- Pie
- FillPolygon
- FillEllipse
- GetDefaultColor
- ChartObjectName
- Circle
- CircleAA
- CircleWu
- Create
- CreateBitmap
- CreateBitmapLabel
- Destroy
- Ellipse
- EllipseAA
- EllipseWu
- Erase
- Fill
- FillCircle
- FillRectangle
- FillTriangle
- FontAngleGet
- FontAngleSet
- FontFlagsGet
- FontFlagsSet
- FontGet
- FontNameGet
- FontNameSet
- FontSet
- FontSizeGet
- FontSizeSet
- Height
- Line
- LineAA
- LineWu
- LineHorizontal
- LineVertical
- LineStyleSet
- LineThick
- LineThickVertical
- LineThickHorizontal
- LoadFromFile
- PixelGet
- PixelSet
- PixelSetAA
- Polygon
- PolygonAA
- PolygonWu
- PolygonThick
- PolygonSmooth
- Polyline
- PolylineSmooth
- PolylineThick
- PolylineWu
- PolylineAA
- Rectangle
- Resize
- ResourceName
- TextHeight
- TextOut
- TextSize
- TextWidth
- TransparentLevelSet
- Triangle
- TriangleAA
- TriangleWu
- Update
- Width
CreateBitmap
Creates a graphical resource bound to a chart object.
1. Creates a graphical resource in the main window of the current chart.
bool CreateBitmap(
|
2. Creates a graphical resource using a chart ID and a subwindow number.
bool CreateBitmap(
|
Parameters
chart_id
[in] Chart ID for creating an object.
subwin
[in] Chart subwindow number for creating an object.
name
[in] Chart object name and a basis for a graphical resource name.
time
[in] Chart object anchor point time coordinate.
price
[in] Chart object anchor point price coordinate.
width
[in] Graphical resource width (size along X axis) in pixels.
height
[in] Graphical resource height (size along Y axis) in pixels.
clrfmt=COLOR_FORMAT_XRGB_NOALPHA
[in] Color processing method. See ResourceCreate() function description to learn more about color processing methods.
Return Value
true - successful, otherwise - false
Note
If the first function version is used, the object is created in the main window of the current chart.
Object size coincides with the size of a graphical resource.