 
            This function creates a new instance of ruler annotation (HIG_ARTX_MARK_RULER).
| 
                        Copy Code
                     | |
|---|---|
| 
AT_ERRCOUNT ACCUAPI IG_ARTX_ruler_create(
        LPAT_POINT lpPoints,    
        LPAT_ARTX_BORDER pLine,
        LPAT_ARTX_ASPECTRATIO lpAspectRatio,
        AT_INT nStartLineLength,
        AT_INT nEndLineLength,
        AT_INT nPrecision,
        LPSTR lpszLabel,
        LPAT_ARTX_FONT logFont,
        AT_INT nOpacity,
        LPHIG_ARTX_RULER lphMark
);
 | |
| Name | Type | Description | 
|---|---|---|
| lpPoints | LPAT_POINT | Array of exactly two points that define the length of the ruler: 
 | 
| pLine | LPAT_ARTX_BORDER | Pointer to line style. | 
| lpAspectRatio | LPAT_ARTX_ASPECTRATIO | Pointer to the aspect ratio. | 
| nStartLineLength | AT_INT | The length of the start point touch. | 
| nEndLineLength | AT_INT | The length of the end point touch. | 
| nPrecision | AT_INT | The number of digits after the decimal point to report for ruler measurements. | 
| lpszLabel | LPSTR | The text to label ruler measurements. | 
| logFont | LPAT_ARTX_FONT | Pointer to the ruler text font. | 
| nOpacity | AT_INT | The annotation opacity. Valid values are 0 to 255. | 
| lphMark | LPHIG_ARTX_RULER | Pointer to storage that is overwritten with the new annotation handle. | 
Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.
This function does not process image pixels.
Upon successful completion: