cairo.FILL_RULE_EVEN_ODD。在此之后调用 fill()填充原始路径之外的区域。 (如果为矩形选择了正确的方...
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); cairo_set_source_rgb (cr,0,0.7,0); cairo_fill_preserve (cr); cairo_set_source_rgb (cr,0,0,0); cairo_stroke (cr); cairo_translate (cr,0,128); cairo_rectangle (cr,12,12,232,70);cairo_new_sub_path(cr); cairo_arc (cr,...
cairo_new_sub_path (cr);cairo_arc_negative(cr,192,64,40,0,-2*M_PI); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); cairo_set_source_rgb (cr,0,0.7,0); cairo_fill_preserve (cr); cairo_set_source_rgb (cr,0,0,0); cairo_stroke (cr); cairo_translate (cr,0,128); ca...
(see the path module), fill = (nil), fill_rule = 'nonzero' | 'evenodd' (nonzero), stroke = (nil), line_dashes = {offset = N (0), N1,...} (nil, no dashes) line_width = N (1), line_cap = 'butt' | 'round' | 'square' (square), line_join = 'miter' | 'round...
cr.set_fill_rule(cairo.FILL_RULE_EVEN_ODD) cr.clip()# Draw radial round.draw_radial_round(cr, x, y, outer_radius, color_infos) 开发者ID:netphi,项目名称:deepin-ui,代码行数:11,代码来源:draw.py 示例14: draw_window_mask ▲点赞 1▼ ...
cr.set_fill_rule(cairo.FILL_RULE_EVEN_ODD) cr.set_source_rgba(0.0,0.0,1.0,0.5) cr.set_line_width(LINE_WIDTH) self.draw_box(cr) text = str(self.obj.id[-1]) layout = PangoCairo.create_layout(cr) layout.set_text(text, len(text))# Dont recreate the description all the time?font...
cairo_set_fill_rule(cr, CAIRO_FILL_RULE_EVEN_ODD);// make pathcairo_move_to(cr, points[0].x, points[0].y);for(i =1; i < n; i++) cairo_line_to(cr, points[i].x, points[i].y); cairo_close_path(cr); cairo_fill(cr); ...
cairo_set_fill_rule(cr, data.windRule == RULE_EVENODD ? CAIRO_FILL_RULE_EVEN_ODD : CAIRO_FILL_RULE_WINDING); } cairo_clip(cr); } 开发者ID:Czerrr,项目名称:ISeeBrowser,代码行数:32,代码来源:SVGResourceClipperCairo.cpp 示例7: shoes_canvas_shape ...
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); cairo_set_source_rgb (cr,0,0.7,0); cairo_fill_preserve (cr); cairo_set_source_rgb (cr,0,0,0); cairo_stroke (cr); cairo_translate (cr,0,128); cairo_rectangle (cr,12,12,232,70); ...
cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); cairo_set_source_rgb (cr,0,0.7,0); cairo_fill_preserve (cr); cairo_set_source_rgb (cr,0,0,0); cairo_stroke (cr); cairo_translate (cr,0,128); cairo_rectangle (cr,12,12,232,70); ...