FormatoFile
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
public final class FileFormat extends System.Enum
Uno dei formati di file di imaging supportati.
Campi
| Campo | Descrizione |
|---|---|
| Unknown | Formato file sconosciuto. |
| Custom | Formato file personalizzato. |
| Bmp | Formato file Bmp (Dib). |
| Gif | Formato file Gif. |
| Jpeg | Formato file Jpeg. |
| Png | Formato file Png. |
| Tiff | Formato file Tiff. |
| Psd | Formato file Psd. |
| Formato file Pdf | |
| Ico | Il formato ico |
| Jpeg2000 | Formato file Jpeg2000 |
| Djvu | Formato file Djvu |
| Webp | Il formato file webp |
| Emf | Il formato file Emf/Emf+ |
| Dicom | Il formato dicom |
| Svg | Formato file SVG |
| Wmf | Il formato file Wmf |
| Dng | Il formato file DNG |
| Odg | Il formato grafico Open document |
| Eps | Il formato Encapsulated PostScript |
| Cdr | Il formato file CDR |
| Cmx | Il formato file CMX |
| Otg | Il formato file otg |
| Html5Canvas | Il formato Html5 Canvas |
| Apng | Il formato file Png animato. |
| Tga | Il formato file Truevision TGA. |
| Dxf | Il formato AutoCAD Drawing Exchange. |
| Emz | L’emz, emf compresso |
| Wmz | Il WMZ, wmf compresso |
| Svgz | Il SVGZ, svg compresso |
| FOdg | Il fodg, formato odg piatto |
| Avif | Il formato file AVIF. |
| BigTiff | Il formato Big Tiff. |
Example: This example shows how to determine the image format without loading the entire image from a file.
String dir = "c:\\temp\\";
// Usa un percorso assoluto al file
long format = com.aspose.imaging.Image.getFileFormat(dir + "sample.gif");
// Una rappresentazione stringa del formato file.
String strFormat;
if (format == com.aspose.imaging.FileFormat.Bmp) {
strFormat = "BMP";
} else if (format == com.aspose.imaging.FileFormat.Gif) {
strFormat = "GIF";
} else if (format == com.aspose.imaging.FileFormat.Dicom) {
strFormat = "DICOM";
} else if (format == com.aspose.imaging.FileFormat.Djvu) {
strFormat = "DJVU";
} else if (format == com.aspose.imaging.FileFormat.Dng) {
strFormat = "DNG";
} else if (format == com.aspose.imaging.FileFormat.Png) {
strFormat = "PNG";
} else if (format == com.aspose.imaging.FileFormat.Jpeg) {
strFormat = "JPEG";
} else if (format == com.aspose.imaging.FileFormat.Jpeg2000) {
strFormat = "JPEG2000";
} else if (format == com.aspose.imaging.FileFormat.Psd) {
strFormat = "PSD";
} else if (format == com.aspose.imaging.FileFormat.Tiff) {
strFormat = "Tiff";
} else if (format == com.aspose.imaging.FileFormat.Webp) {
strFormat = "WEBP";
} else if (format == com.aspose.imaging.FileFormat.Cdr) {
strFormat = "CDR";
} else if (format == com.aspose.imaging.FileFormat.Cmx) {
strFormat = "CMX";
} else if (format == com.aspose.imaging.FileFormat.Emf) {
strFormat = "EMF";
} else if (format == com.aspose.imaging.FileFormat.Wmf) {
strFormat = "WMF";
} else if (format == com.aspose.imaging.FileFormat.Svg) {
strFormat = "SVG";
} else if (format == com.aspose.imaging.FileFormat.Odg) {
strFormat = "ODG";
} else if (format == com.aspose.imaging.FileFormat.Eps) {
strFormat = "EPS";
} else {
strFormat = "UNDEFINED";
}
System.out.println("The file format is " + strFormat);
Unknown
public static final long Unknown
Formato file sconosciuto.
Custom
public static final long Custom
Formato file personalizzato.
Bmp
public static final long Bmp
Formato file Bmp (Dib).
Gif
public static final long Gif
Formato file Gif.
Jpeg
public static final long Jpeg
Formato file Jpeg.
Png
public static final long Png
Formato file Png.
Tiff
public static final long Tiff
Formato file Tiff.
Psd
public static final long Psd
Formato file Psd.
public static final long Pdf
Formato file Pdf
Ico
public static final long Ico
Il formato ico
Jpeg2000
public static final long Jpeg2000
Formato file Jpeg2000
Djvu
public static final long Djvu
Formato file Djvu
Webp
public static final long Webp
Il formato file webp
Emf
public static final long Emf
Il formato file Emf/Emf+
Dicom
public static final long Dicom
Il formato dicom
Svg
public static final long Svg
Formato file SVG
Wmf
public static final long Wmf
Il formato file Wmf
Dng
public static final long Dng
Il formato file DNG
Odg
public static final long Odg
Il formato grafico Open document
Eps
public static final long Eps
Il formato Encapsulated PostScript
Cdr
public static final long Cdr
Il formato file CDR
Cmx
public static final long Cmx
Il formato file CMX
Otg
public static final long Otg
Il formato file otg
Html5Canvas
public static final long Html5Canvas
Il formato Html5 Canvas
Apng
public static final long Apng
Il formato file Png animato.
Tga
public static final long Tga
Il formato file Truevision TGA.
Dxf
public static final long Dxf
Il formato AutoCAD Drawing Exchange.
Emz
public static final long Emz
L’emz, emf compresso
Wmz
public static final long Wmz
Il WMZ, wmf compresso
Svgz
public static final long Svgz
Il SVGZ, svg compresso
FOdg
public static final long FOdg
Il fodg, formato odg piatto
Avif
public static final long Avif
Il formato file AVIF.
BigTiff
public static final long BigTiff
Il formato Big Tiff.