ImagePlacement

ImagePlacement

ภาพรวม

ImagePlacement เป็นคลาสใน Aspose.PDF FOSS สำหรับ Python.

แทนภาพที่วางบนหน้า PDF.

คลาสนี้ให้ 4 เมธอดสำหรับทำงานกับวัตถุ ImagePlacement ในโปรแกรม Python. เมธอดที่มีรวมถึง: __init__, hide, replace, save. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS สำหรับ Python. คุณสมบัติ: bits_per_component, color_space, height, image_data, matrix, name, และอีก 5 รายการ.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
image_databytesอ่านส่งคืน payload ของภาพปัจจุบัน.
rectangleRectangleอ่านสี่เหลี่ยมขอบของภาพบนหน้า (x, y, ความกว้าง, ความสูงเป็นหน่วยจุด PDF).
resolutiontuple[float, float]อ่านความละเอียดของภาพเป็น (horizontal_dpi, vertical_dpi).
rotationintอ่านมุมการหมุนเป็นองศา (0, 90, 180, 270).
matrixtuple[float, float, float, float, float, float]อ่านเมทริกซ์การแปลงของ PDF (a, b, c, d, e, f).
width`intNone`อ่าน
height`intNone`อ่าน
bits_per_component`intNone`อ่าน
color_space`strNone`อ่าน
name``อ่านรับชื่อ.
page_index``อ่านรับดัชนีหน้า.

วิธีการ

ลายเซ็นคำอธิบาย
`init(name: str, image_data: bytesbytearray, page_index: int, rect: Rectangle
`replace(new_image_data: bytesbytearray)`
`save(path: stros.PathLike, color_space: str
hide()ซ่อนตำแหน่งภาพ.

ดูเพิ่มเติม

 ภาษาไทย