阅读(99+)评论(0)

mre的gdi绘图接口画图函数

// 绘制点到基础图层
void vm_graphic_setpixel(VMINT x, VMINT y, VMINT color);
// 绘制线到基础图层
void vm_graphic_drawline(VMINT x0, VMINT y0, VMINT x1, VMINT y1, VMINT color);

// 绘制矩形到基础图层
void vm_graphic_drawrect(VMINT x, VMINT y, VMINT width, VMINT height, VMINT color);
// 绘制填充矩形到基础图层
void vm_graphic_fillrect(VMINT x, VMINT y, int width, int height, int color);

-----------------

// 在缓冲区的指定位置上画一点
void vm_graphic_set_pixel(VMUINT8 *buf, VMINT x,VMINT y, VMUINT16 color);
void vm_graphic_set_pixel_cf(VMUINT8 *buf, VMINT x, VMINT y, vm_graphic_color_argb* color);

// 在缓冲区的指定位置画一条线
void vm_graphic_line(VMUINT8 *buf, VMINT x0, VMINT y0, VMINT x1, VMINT y1, VMUINT16 color);
void vm_graphic_line_cf(VMUINT8 *buf, VMINT x0, VMINT y0, VMINT x1, VMINT y1, vm_graphic_color_argb* color);

// 画矩形 在缓冲区的指定位置绘制一个矩形
void vm_graphic_rect(VMUINT8 *buf, VMINT x, VMINT y, VMINT width, VMINT height, VMUINT16 color);
void vm_graphic_rect_cf(VMUINT8 *buf, VMINT x, VMINT y, VMINT width, VMINT height, vm_graphic_color_argb* color);

// 画填充矩形 在缓冲区的指定位置绘制一个填充矩形
void vm_graphic_fill_rect(VMUINT8 *buf, VMINT x, VMINT y, VMINT width, VMINT height, VMUINT16 line_color, VMUINT16 back_color);
void vm_graphic_fill_rect_cf(VMUINT8 *buf,VMINT x,VMINT y,VMINT width,VMINT height,vm_graphic_color_argb* line_color,vm_graphic_color_argb* back_color);

// 画圆角矩形 在缓冲区的指定位置绘制一个圆角矩形
void vm_graphic_roundrect (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMINT corner_width, VMUINT16 color);
void vm_graphic_roundrect_cf (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMINT corner_width, vm_graphic_color_argb* color);

// 画填充圆角矩形 在缓冲区的指定位置绘制一个填充的圆角矩形
void vm_graphic_fill_roundrect (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMINT corner_width, VMUINT16 color);
void vm_graphic_fill_roundrect_cf (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMINT corner_width, vm_graphic_color_argb* color);

// 画椭圆 在缓冲区的指定位置绘制椭圆
void vm_graphic_ellipse (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMUINT16 color);
void vm_graphic_ellipse_cf(VMUINT8* buf, VMINT x, VMINT y, VMINT width, VMINT height, vm_graphic_color_argb* color);

// 画填充椭圆 在缓冲区的指定位置绘制填充椭圆
void vm_graphic_fill_ellipse (VMUINT8 * buf, VMINT x, VMINT y, VMINT width, VMINT height, VMUINT16 color);
void vm_graphic_fill_ellipse_cf(VMUINT8* buf, VMINT x, VMINT y, VMINT width, VMINT height, vm_graphic_color_argb* color);

-----------------

// 在图层上绘制点
void vm_graphic_set_pixel_ex(VMINT handle,VMINT x1,VMINT y1);
// 在图层上绘制线
void vm_graphic_line_style(VMINT handle,VMINT x1,VMINT y1,VMINT x2,VMINT y2);
// 在图层上绘制矩形
void vm_graphic_rect_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height);
// 在图层上绘制填充的矩形
void vm_graphic_fill_rect_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height);
// 在图层上绘制圆角矩形
void vm_graphic_roundrect_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height, VMINT frame_width);
// 在图层上绘制填充的圆角矩形
void vm_graphic_fill_roundrect_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height, VMINT frame_width);
// 在图层上绘制椭圆
void vm_graphic_ellipse_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height);
// 在图层上绘制填充的椭圆
void vm_graphic_fill_ellipse_ex(VMINT handle, VMINT x, VMINT y, VMINT width, VMINT height);
// 在图层上绘制多边形
void vm_graphic_polygon(VMINT handle, vm_graphic_point *point,VMINT npoint);
// 在图层上绘制填充的多边形
void vm_graphic_fill_polygon(VMINT handle, vm_graphic_point *point,VMINT npoints);
// 在图层上绘制渐变矩形
void vm_graphic_gradient_paint_rect(VMINT handle, VMINT x1, VMINT y1, VMINT x2, VMINT y2, vm_graphic_color color_start, vm_graphic_color color_end,vm_graphic_gp_style style);
发表回复
回复
最新回复
空空如也

2024-10-18 15:13:24 星期五