MuPDF 1.25.0 Documentationthe zoom and rotation desired. */ /* The default resolution without scaling is 72 dpi. */ ctm = fz_scale(zoom / 100, zoom / 100); ctm = fz_pre_rotate(ctm, rotate); /* Render page to an RGB pixmap. */ fz_try(ctx) left, fz_matrix right); Concat two matrices and returns a new matrix. fz_matrix fz_scale(float sx, float sy); Scale. fz_matrix fz_shear(float sx, float sy); Shear. fz_matrix fz_rotate(float degrees); fz_unpack_tile(fz_context *ctx, fz_pixmap *dst, unsigned char *src, int n, int depth, size_t stride, int scale); Unpack pixel values from source data to fill in the pixmap samples. n is the number of samples0 码力 | 259 页 | 1.11 MB | 8 月前3
 MuPDF 1.23.0 Documentationthe zoom and rotation desired. */ /* The default resolution without scaling is 72 dpi. */ ctm = fz_scale(zoom / 100, zoom / 100); ctm = fz_pre_rotate(ctm, rotate); /* Render page to an RGB pixmap. */ fz_try(ctx) left, fz_matrix right); Concat two matrices and returns a new matrix. fz_matrix fz_scale(float sx, float sy); Scale. fz_matrix fz_shear(float sx, float sy); Shear. fz_matrix fz_rotate(float degrees); fz_unpack_tile(fz_context *ctx, fz_pixmap *dst, unsigned char *src, int n, int depth, size_t stride, int scale); Unpack pixel values from source data to fill in the pixmap samples. n is the number of samples0 码力 | 245 页 | 817.74 KB | 8 月前3
 PyMuPDF 1.24.2 Documentationheight / 2. # rect middle means y = 0 x_step = rect.width / 360 # rect width means 360 degrees y_scale = rect.height / 2. # rect height means 2 sin_points = [] # sine values go here cos_points = [] # * deg) # sine p = (x_coord, y * y_scale + first_y) # corresponding point sin_points.append(p) # append y = -math.cos(x * deg) # cosine p = (x_coord, y * y_scale + first_y) # corresponding point cos_points mytime() # start a timer filename = sys.argv[1] mat = fitz.Matrix(0.2, 0.2) # the rendering matrix: scale down to 20% cpu = cpu_count() # make vectors of arguments for the processes vectors = [(i, cpu,0 码力 | 565 页 | 6.84 MB | 1 年前3
 MuPDF 1.24.0 Documentationthe zoom and rotation desired. */ /* The default resolution without scaling is 72 dpi. */ ctm = fz_scale(zoom / 100, zoom / 100); ctm = fz_pre_rotate(ctm, rotate); /* Render page to an RGB pixmap. */ fz_try(ctx) left, fz_matrix right); Concat two matrices and returns a new matrix. fz_matrix fz_scale(float sx, float sy); Scale. fz_matrix fz_shear(float sx, float sy); Shear. fz_matrix fz_rotate(float degrees); fz_unpack_tile(fz_context *ctx, fz_pixmap *dst, unsigned char *src, int n, int depth, size_t stride, int scale); Unpack pixel values from source data to fill in the pixmap samples. n is the number of samples0 码力 | 249 页 | 830.15 KB | 8 月前3
 MuPDF 1.22.0 Documentationthe zoom and rotation desired. */ /* The default resolution without scaling is 72 dpi. */ ctm = fz_scale(zoom / 100, zoom / 100); ctm = fz_pre_rotate(ctm, rotate); /* Render page to an RGB pixmap. */ fz_try(ctx) [a,b,c,d,e,f]. Properties Identity The identity matrix, short hand for [1,0,0,1,0,0]. Methods Scale(sx, sy) Returns a scaling matrix, short hand for [sx,0,0,sy,0,0]. Returns [a,b,c,d,e,f]. Translate(tx MuPDF Documentation, Release 1.21.2 Text state • op_Tc(charSpace) • op_Tw(wordSpace) • op_Tz(scale) • op_TL(leading) • op_Tf(name, size) • op_Tr(render) • op_Ts(rise) Text positioning • op_Td(tx0 码力 | 175 页 | 698.87 KB | 8 月前3
 PyMuPDF 1.12.2 documentationdegrees (use conventional notation based on Pi = 180 degrees). preScale(sx, sy) Modify the matrix to scale by the zoom factors sx and sy. Has effects on attributes a thru d only: [a, b, c, d, e, f] - > [a*sx the following approach (Adobe PDF Reference 1.7, page 206): 1. Shift (“translate”) 2. Rotate 3. Scale or shear (“skew”) Matrix Algebra For a general background, see chapter Operator Algebra for Geometry (int) – page number (0-based) to be shown. Parameters: keep_proportion (bool) – control whether to scale width and height synchronously (default). overlay (bool) – put image in foreground (default) or background0 码力 | 387 页 | 2.70 MB | 1 年前3
共 6 条
- 1
 













