Image
Overview
Image เป็นคลาสใน Aspose.Slides FOSS สําหรับ Java. ทายาทจาก: IImage.
แสดงภาพราสเตอร์หรือวექტอร์.
หมวดนี้ให้ 13 วิธีในการทํางานกับวัตถุภาพในโปรแกรม Java. วิธีการที่ใช้ได้แก่: Image, close, getContentType, getData, getHeight, getSize, getWidth, initInternal, save. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: contentType, data, height, size, width.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
size | Size | Read | {@inheritDoc} / |
width | int | Read | {@inheritDoc} / |
height | int | Read | {@inheritDoc} / |
contentType | String | Read | ได้รับ MIME content type ของภาพ. |
data | byte[] | Read | ได้ข้อมูลภาพสด. |
Methods
| Signature | Description |
|---|---|
Image() | สร้างภาพที่ไม่ได้เริ่มต้น. |
initInternal(data: byte[], contentType: String) | การประกอบภายในด้วยข้อมูลภาพ. |
getSize() → Size | {@inheritDoc} / |
getWidth() → int | {@inheritDoc} / |
getHeight() → int | {@inheritDoc} / |
getContentType() → String | ได้รับ MIME content type ของภาพ. |
getData() → byte[] | ได้ข้อมูลภาพสด. |
save(filename: String) | {@inheritDoc} / |
save(filename: String, format: String) | {@inheritDoc} / |
save(filename: String, format: String, quality: int) | {@inheritDoc} / |
save(stream: OutputStream, format: String) | {@inheritDoc} / |
save(stream: OutputStream, format: String, quality: int) | {@inheritDoc} / |
close() | {@inheritDoc} / |