ImageRenderState

ImageRenderState

Overview

ImageRenderState là một lớp trong Aspose.Words FOSS cho Python.

Accumulator threaded thông qua đoạn rendering cho hình dạng inline.

Khóa học này cung cấp 2 phương pháp để làm việc với các đối tượng ImageRenderState trong các chương trình Python. Các phương pháp có sẵn bao gồm: render_inline_shape, set_section_margins. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Python nào sau khi cài đặt Aspose.Words FOSS cho gói Python. Tài sản : doc_pr_offset, emit_wps_shapes, images, media_name_prefix, rel_id_prefix, section_left_margin_mm,Và 1 thêm.

Properties

NameTypeAccessDescription
imageslist[ImageEntry]Đọc / viếtNhận hoặc đặt hình ảnh.
section_left_margin_mmfloatĐọc / viếtNhận hoặc đặt phần bên trái margin mm.
section_top_margin_mmfloatĐọc / viếtNhận hoặc đặt phần đầu margin mm.
media_name_prefixstrĐọc / viếtNhận hoặc đặt tên phương tiện truyền thông.
rel_id_prefixstrĐọc / viếtNhận hoặc đặt ra các ID prefix.
doc_pr_offsetintĐọc / viếtNhận hoặc đặt doc pr offset.
emit_wps_shapesboolĐọc / viếtNhận hoặc đặt các hình dạng phát sóng WPS.

Methods

SignatureDescription
render_inline_shape(shape: ldm.ShapeNode, rels: Optional[dict], num_id_map: Optional[Mapping[int, int]], bookmark_state: Optional[BookmarkState], style_pf_map: Optional[Mapping[str, ldm.ParagraphFormat]], style_id_map: Optional[Mapping[str, str]], style_font_map: Optional[Mapping[str, ldm.Font]])Optional[str]Emit <w:r><w:drawing>…</w:drawing></w:r> Đối với shape.
set_section_margins(page_setup: "ldm.PageSetup")Cập nhật phần cache margin.

See Also

 Tiếng Việt