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_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_...
id=1333 */staticfz_pixmap *decomp_image_banded(fz_context *ctx, fz_stream *stm, fz_image *image,intindexed,intl2factor,intnative_l2factor){ fz_pixmap *tile =NULL, *part =NULL;intw = (image->w + (1<< l2factor) -1) >> l2factor;inth = (image->h + (1<< l2factor) -1) >...
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); ...
fz_pixmap *pix; fz_device *dev; fz_bound_page(ctx, page, &rect); fz_transform_rect(&rect, ctm);fz_round_rect(&irect, &rect); pix = fz_new_pixmap_with_bbox(ctx, cs, &irect,0); fz_clear_pixmap_with_value(ctx, pix,0xFF); ...
error = fz_newpixmapwithrect(&gc->dest, gc->clip,4);if(error)returnerror; p = gc->dest->samples; n = gc->dest->w * gc->dest->h; } a = gc->argb[0]; r = gc->argb[1]; g = gc->argb[2]; b = gc->argb[3];if(((unsigned)p &3)) {while(n--) ...