Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Aspose.Imaging for Java

License

NotificationsYou must be signed in to change notification settings

aspose-imaging/Aspose.Imaging-for-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub all releasesGitHub

Java API for Image Processing

Imaging API is a library offering advanced image processing features. Developers can create, edit or convert images in their own application. Also Aspose. Imaging library supports drawing and work with graphic primitives. Image export and conversion (including uniform multi-page image processing) is the one of API core features along with image transformations (resize, crop, flip&rotate, binarization, grayscale, adjust), advanced image manipulation features (filtering, dithering, masking, deskewing) and memory optimization strategies.

DirectoryDescription
ExamplesA collection of Java examples that help you learn the product features.
PluginsPlugins that will demonstrate one or more features of Aspose.Imaging for Java.

DirectoryDescription
ExamplesA collection of Java examples that help you learn the product features.
PluginsPlugins related to Aspose.Imaging for Java product.

Imaging API Features

Load & Save Image Formats

Raster Formats: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, DICOM, TGA, ICO
Metafiles: EMF, WMF
Compressed metafiles: EMZ, WMZ
Other: WebP, Svg, Svgz (compressed Svg)
Animation: Apng

Save Images As

Fixed-layout: PDF
Photoshop: PSD
Web: Html5 Canvas
AutoCAD: Dxf

Load Images

Various: DjVu, DNG, ODG, EPS, CMX, CDR, DIB, OTG, FODG

Platform Independence

Aspose.Imaging for Java can be virtually run in any OS where Java is installed (since JDK 1.6)

  • Windows (since 7)
  • Linux
  • MacOS
  • Any OS where Java is installed.

Aspose.Imaging works for both x86 and x64 versions of the above listed operating systems.

Note: In Linux OS, it is recommended to install the package with Microsoft compatible fonts (e.g.sudo apt-get install ttf-mscorefonts-installer).

Get Started with Aspose.Imaging for Java

Aspose hosts all Java APIs at theAspose Repository. You can easily use Aspose.BarCode for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visitInstalling Aspose.Imaging for Java from Maven Repository documentation page.

Resize a JPG Image

try (Imageimage =Image.load(dir +"template.jpg")){image.resize(300,300);image.save(dir +"output.jpg");}

Create & Manipulate PNG via API

// image width and heightintwidth =500;intheight =300;// where created image to storeStringpath ="createdImage.png";// create optionstry (PngOptionsoptions =newPngOptions()){options.setSource(newFileCreateSource(path,false));try (PngImageimage = (PngImage)Image.create(options,width,height)){// create and initialize an instance of Graphics class// and Clear Graphics surfaceGraphicsgraphic =newGraphics(image);graphic.clear(Color.getGreen());// draw line on imagegraphic.drawLine(newPen(Color.getBlue()),9,9,90,90);// resize imageintnewWidth =400;image.resizeWidthProportionally(newWidth,ResizeType.LanczosResample);// crop the image to specified areacom.aspose.imaging.Rectanglearea =newcom.aspose.imaging.Rectangle(10,10,200,200);image.crop(area);image.save();}}

Home |Product Page |Docs |Demos |API Reference |Examples |Blog |Search |Free Support |Temporary License


[8]ページ先頭

©2009-2025 Movatter.jp