CPCLCmd.h

Includes:

Introduction

Use the links in the table of contents to the left to access the documentation.



Methods

+GetDrawBoxCmd:y0:x1:y1:width:
+GetDrawLineCmd:x0:y0:x1:y1:isFullLine:
+GetLineCmd:y0:x1:y1:width:

GetDrawBoxCmd:y0:x1:y1:width:


- (NSData *) GetDrawBoxCmd:(int)x0 y0:(int)y0 x1:(int)x1 y1:(int)y1 
        width:(int)width;  
Parameters
x0

左上角的 X 坐标。

y0

左上角的 Y 坐标。

x1

右下角的 X 坐标。

y1

右下角的 Y 坐标。

width

形成矩形框的线条的单位宽度。

Discussion

生成矩形框 用户可以使用 BOX 命令生成具有指定线条宽度的矩形


GetDrawLineCmd:x0:y0:x1:y1:isFullLine:


-(NSData *)GetDrawLineCmd:(int)lineWidth x0:(int)x0 y0:(int)y0 
        x1:(int)x1 y1:(int)y1 isFullLine:(BOOL)isFullLine;  
Parameters
x0

左上角的 X 坐标。 *

y0

左上角的 Y 坐标。 *

x1

以下项的 X 坐标: * - 水平轴的右上角。 * - 垂直轴的左下角 *

y1

以下项的 Y 坐标: - 水平轴的右上角。 - 垂直轴的左下角。 *

lineWidth

线条的单位宽度。

Discussion

* GetDrawLineCmd 画线 *


GetLineCmd:y0:x1:y1:width:


-(NSData *) GetLineCmd:(int)x0 y0:(int)y0 x1:(int)x1 y1:(int)y1 
        width:(int)width;  
Parameters
x0

左上角的 X 坐标。 *

y0

左上角的 Y 坐标。 *

x1

以下项的 X 坐标: * - 水平轴的右上角。 * - 垂直轴的左下角 *

y1

以下项的 Y 坐标: - 水平轴的右上角。 - 垂直轴的左下角。 *

width

线条的单位宽度。

Discussion

* 画线 *