bbox = fz_intersect_bbox(bbox,fz_round_rect(*rect)); mask = fz_new_pixmap_with_rect(ctx,NULL, bbox); fz_clear_pixmap(mask); dest = fz_new_pixmap_with_rect(ctx, model, bbox);/*FIXME:See note #1 */fz_clear_pixmap(dest);if(dev->shape) { shape = fz_new_pixmap_with_rect(...
fz_bbox bbox = fz_round_rect(fz_transform_rect(ctm, fz_unit_rect)); *result = fz_union_bbox(*result, bbox); } 开发者ID:hk0792,项目名称:UsefulClass,代码行数:7,代码来源:dev_bbox.c 示例6: fz_new_pixmap_from_display_list ▲点赞 1▼ fz_pixmap *fz_new_pixmap_from_display_list...
fz_round_rect(&bbox, fz_intersect_rect(fz_bound_shade(ctx, shade, ctm, &rect), &dev->container[dev->container_len-1].scissor));if(fz_is_empty_irect(&bbox))return; pix = fz_new_pixmap_with_bbox(ctx,fz_device_rgb(ctx), &bbox); fz_clear_pixmap(ctx, pix); fz_try(ctx) {...
fz_pixmap *tile =NULL; fz_pixmap *existing_tile;intstride, len, i;unsignedchar*samples =NULL;intf =1<<native_l2factor;intw = (image->base.w + f-1) >> native_l2factor;inth = (image->base.h + f-1) >> native_l2factor;/* SumatraPDF: prevent use of uninitialized value */pdf_...
buffer = fz_new_buffer_from_pixmap_as_png(ctx, wri->pixmap,NULL); fz_try(ctx) fz_write_zip_entry(ctx, wri->zip, name, buffer,0); fz_always(ctx) fz_drop_buffer(ctx, buffer);fz_catch(ctx) fz_rethrow(ctx); fz_drop_pixmap(ctx, wri->pixmap); ...
cs = *(fz_colorspace **)cs->data;// cf. struct indexed in res_colorspace.ctile = fz_new_pixmap(ctx, cs, w, h); tile->interpolate = image->interpolate; tile->has_alpha =0;/* SumatraPDF: allow optimizing non-alpha pixmaps *//* decompress the image in bands of 256 lines */...