BMP JPG PDF XML DWT
  Product Family
BMP

แปลง DWT เป็น BMP ผ่าน Java

Native Java Library สำหรับอ่าน เขียน และส่งออก DWT เป็น BMP โดยไม่ต้องใช้ Adobe

วิธีแปลง DWT เป็น BMP โดยใช้ Java

ในการแสดง DWT เป็น BMP เราจะใช้ API ของ Aspose.CAD for Java ซึ่งเป็นคุณลักษณะที่หลากหลาย มีประสิทธิภาพ และใช้งานง่าย เพื่อใช้ Conversion API สำหรับแพลตฟอร์ม Java คุณสามารถดาวน์โหลดเวอร์ชันล่าสุดได้โดยตรงจาก Maven และ ติดตั้งภายในโปรเจ็กต์ที่ใช้ Maven โดยเพิ่มการกำหนดค่าต่อไปนี้ใน pom.xml

ที่เก็บ


<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>

การพึ่งพา

<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<version>version of aspose-cad API</version>
<classifier>jdk17</classifier>
</dependency>

ขั้นตอนในการแปลง DWT เป็น BMP ผ่าน Java

  1. โหลดไฟล์ DWT ด้วยวิธี Image.load
  2. ตั้งค่าวัตถุของ CadRasterizationOptions ด้วยความสูง & ความกว้างของหน้า
  3. สร้างอินสแตนซ์ของคลาส BmpOptions และตั้งค่าคุณสมบัติ VectorRasterizationOptions
  4. เรียกเมธอด Image.save ขณะส่งพาธไฟล์ผลลัพธ์ & ออบเจ็กต์ของ BmpOptions

ข้อกำหนดการแปลง

- Microsoft Windows หรือ OS ที่เข้ากันได้กับ Java Runtime Environment สำหรับแอปพลิเคชัน JSP/JSF และแอปพลิเคชันเดสก์ท็อป - รับ Aspose.CAD เวอร์ชันล่าสุดสำหรับ Java โดยตรงจาก Maven
 

DWT เป็น BMP Java Conversion Source Code

// load DWT in an instance of Image via its Load method
Image image = Image.load("template.dwt");
// create an instance of CadRasterizationOptions and set page height & width
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);
// create an instance of BmpOptions
TiffOptions options = new TiffOptions();
// set the VectorRasterizationOptions property as CadRasterizationOptions
options.setVectorRasterizationOptions(rasterizationOptions);
// export DWT to BMP
image.save("output.bmp", options);
 

แอพฟรีเพื่อแปลง DWT เป็น BMP

Convert DWT to BMP right now by visiting our Live Demos website.The live demo has the following benefits

  No need to download Aspose API.
  No need to write any code.
  Just upload your DWT file, it will be converted instantly to BMP.
  You will get the download link.