JpegDevice

ภาพรวม

JpegDevice เป็นคลาสใน Aspose.PDF FOSS สําหรับ .NET. ทายาทจาก: ImageDevice.

ทําการแสดงหน้าเอกสาร PDF เป็นรูปภาพ JPEG.

หมวดนี้ให้ 18 วิธีในการทํางานกับวัตถุ JpegDevice ในโปรแกรม .NET. วิธีการที่ใช้ได้แก่: ClearEncoder, GetBitmap, ImageDevice, JpegDevice, Process, SetEncoder. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน .NET ใดก็ได้หลังจากติดตั้งแพ็คเกจ Aspose.PDF FOSS for .Net. คุณสมบัติ: CoordinateType, FormPresentationMode, Height, Quality, RenderingOptions, Resolution,และอีก 1 ใบ.

คุณสมบัติ

ชื่อประเภทAccessคําอธิบาย
Qualityintอ่านคุณภาพ JPEG (1-100).
FormPresentationModeFormPresentationModeอ่าน/เขียนรูปแบบการแสดง (ผลิตให้ค่ารูป; Editor ให้ฟิลด์ว่าง).
ResolutionResolutionอ่านความละเอียดการออกใน DPI.
RenderingOptionsAspose.Pdf.RenderingOptionsอ่าน/เขียนตัวเลือกการทําแบบให้กับการควบคุมที่สูงของหน้า-ภาพ rendering.
CoordinateTypePageCoordinateTypeอ่าน/เขียนช่องหน้าไหนที่ขับขี่รูปแบบการทํารันเดอร์?.
Widthintอ่านความกว้างของพิกเซลเป้าหมายที่ตั้งค่า (0 = ตามขนาดธรรมชาติของหน้าในความละเอียด).
Heightintอ่านความสูงของพิกเซลเป้าหมายที่ตั้งค่า (0 = ตามขนาดธรรมชาติของหน้าในความละเอียด).

วิธีการ

Signatureคําอธิบาย
JpegDevice(renderer: IPageRenderer)เรียก JpegDevice(renderer) ในตัวอย่างนี้ JpegDevice.
JpegDevice(renderer: IPageRenderer, resolution: Resolution)เรียก JpegDevice ((renderer, resolution) ในตัวอย่างนี้ JpegDevice.
JpegDevice(renderer: IPageRenderer, resolution: Resolution, quality: int)เรียก JpegDevice ((Renderer, resolution, quality) ในตัวอย่างนี้ JpegDevice.
JpegDevice()
JpegDevice(resolution: Resolution)เรียก JpegDevice ((การแก้ไข) ในตัวอย่างนี้ JpegDevice.
JpegDevice(resolution: Resolution, quality: int)เรียก JpegDevice ((ความละเอียด, คุณภาพ) ในตัวอย่างนี้ JpegDevice.
JpegDevice(quality: int)เรียก JpegDevice(คุณภาพ) ในตัวอย่างนี้ JpegDevice.
JpegDevice(width: int, height: int)เรียก JpegDevice ((ความกว้าง, ความสูง) ในตัวอย่างนี้ JpegDevice.
JpegDevice(width: int, height: int, resolution: Resolution)เรียก JpegDevice ((ความกว้าง, ความสูง, การแก้ไข) ในตัวอย่างนี้ JpegDevice.
JpegDevice(width: int, height: int, resolution: Resolution, quality: int)เรียก JpegDevice ((ความกว้าง, ความสูง, การแก้ไข, คุณภาพ) ในตัวอย่างนี้ JpegDevice.
JpegDevice(pageSize: Aspose.Pdf.PageSize)การสร้างขนาดเป็นหน้า ขนาดที่ 150 DPI คุณภาพตั้งค่า 85.
JpegDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution)สร้างขนาดเป็นหน้า ขนาดที่ความละเอียด คุณภาพตั้งค่า 85.
JpegDevice(pageSize: Aspose.Pdf.PageSize, resolution: Resolution, quality: int)สร้างขนาดเป็นหน้า ขนาดที่ความละเอียดที่มีคุณภาพชัดเจน.
SetEncoder(encoder: JpegEncoder)จดทะเบียนฟังก์ชันการโค้ด JPEG ทั่วโลก.
ClearEncoder()ถอดตัวรหัส JPEG ที่ลงทะเบียนไว้.
Process(page: Page, output: Stream)เรียก Process(หน้า, output) ในตัวอย่าง JpegDevice นี้.
ImageDevice(resolution: Resolution)เริ่มต้น ImageDevice ใหม่ด้วยการแก้ไขโดยใช้ built-in SoftwarePageRenderer.
GetBitmap(page: Page)ทําหน้าให้กับบิตแมป.

ดูเช่นกัน

 ภาษาไทย