fz_pixmap *fz_new_pixmap_from_page_contents(fz_context *ctx, fz_page *page,constfz_matrix *ctm, fz_colorspace *cs){ fz_rect rect; fz_irect irect; fz_pixmap *pix; fz_device *dev; fz_bound_page(ctx, page, &rect);fz_transform_rect(&rect, ctm); fz_round_rect(&irect, &rect)...
fz_pixmap *tile =NULL, *part =NULL;intw = (image->w + (1<< l2factor) -1) >> l2factor;inth = (image->h + (1<< l2factor) -1) >> l2factor;intpart_h, orig_h = image->h;intband =1<< fz_maxi(8, l2factor);fz_var(tile);fz_var(part); fz_try(ctx) { fz_colorspace...
The QImage class provides a hardware-independent pixmap representation with direct access to the pixel data. More... #include <qimage.h>…
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(ctx,NULL, bbox); fz_clear_pixmap(shape); }elseshape =NULL;if(!fz_is_empty_rect(bbox)) fz_scan_convert(...
staticvoiddrawimage(HDC hdc,pdfmoz_t*moz, fz_pixmap *image,intyofs){intbmpstride = ((image->w *3+3) /4) *4;unsignedchar*bmpdata = fz_malloc(image->h * bmpstride);intx, y;if(!bmpdata)return;for(y =0; y < image->h; y++) ...
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_image_key *key =NULL; ...
fz_drop_pixmap(ctx, pix); fz_rethrow(ctx); }returnpix; } 开发者ID:Enzime,项目名称:mupdf,代码行数:35,代码来源:util.c 示例2: fz_new_pixmap_from_page_contents ▲点赞 7▼ fz_pixmap *fz_new_pixmap_from_page_contents(fz_context *ctx, fz_page *page,constfz_matrix *ctm, fz_colorspace...
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_image_key *key =NULL; ...