FileFormat
Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum
public final class FileFormat extends System.Enum
L’un des formats de fichiers d’imagerie pris en charge.
Champs
| Champ | Description |
|---|---|
| Unknown | Format de fichier inconnu. |
| Custom | Format de fichier personnalisé. |
| Bmp | Format de fichier Bmp (Dib). |
| Gif | Format de fichier Gif. |
| Jpeg | Format de fichier Jpeg. |
| Png | Format de fichier Png. |
| Tiff | Format de fichier Tiff. |
| Psd | Format de fichier Psd. |
| Format de fichier Pdf | |
| Ico | Le format ico |
| Jpeg2000 | Format de fichier Jpeg2000 |
| Djvu | Format de fichier Djvu |
| Webp | Le format de fichier webp |
| Emf | Le format de fichier Emf/Emf+ |
| Dicom | Le format dicom |
| Svg | Format de fichier SVG |
| Wmf | Le format de fichier Wmf |
| Dng | Le format de fichier DNG |
| Odg | Le format graphique Open document |
| Eps | Le format Encapsulated PostScript |
| Cdr | Le format de fichier CDR |
| Cmx | Le format de fichier CMX |
| Otg | Le format de fichier otg |
| Html5Canvas | Le format Html5 Canvas |
| Apng | Le format de fichier PNG animé. |
| Tga | Le format de fichier Truevision TGA. |
| Dxf | Le format AutoCAD Drawing Exchange. |
| Emz | Le emz, emf compressé |
| Wmz | Le WMZ, wmf compressé |
| Svgz | Le SVGZ, svg compressé |
| FOdg | Le format fodg, odg plat |
| Avif | Le format de fichier AVIF. |
| BigTiff | Le format Big Tiff. |
Example: This example shows how to determine the image format without loading the entire image from a file.
String dir = "c:\\temp\\";
// Utilisez un chemin absolu vers le fichier
long format = com.aspose.imaging.Image.getFileFormat(dir + "sample.gif");
// Une représentation sous forme de chaîne du format de fichier.
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
Format de fichier inconnu.
Custom
public static final long Custom
Format de fichier personnalisé.
Bmp
public static final long Bmp
Format de fichier Bmp (Dib).
Gif
public static final long Gif
Format de fichier Gif.
Jpeg
public static final long Jpeg
Format de fichier Jpeg.
Png
public static final long Png
Format de fichier Png.
Tiff
public static final long Tiff
Format de fichier Tiff.
Psd
public static final long Psd
Format de fichier Psd.
public static final long Pdf
Format de fichier Pdf
Ico
public static final long Ico
Le format ico
Jpeg2000
public static final long Jpeg2000
Format de fichier Jpeg2000
Djvu
public static final long Djvu
Format de fichier Djvu
Webp
public static final long Webp
Le format de fichier webp
Emf
public static final long Emf
Le format de fichier Emf/Emf+
Dicom
public static final long Dicom
Le format dicom
Svg
public static final long Svg
Format de fichier SVG
Wmf
public static final long Wmf
Le format de fichier Wmf
Dng
public static final long Dng
Le format de fichier DNG
Odg
public static final long Odg
Le format graphique Open document
Eps
public static final long Eps
Le format Encapsulated PostScript
Cdr
public static final long Cdr
Le format de fichier CDR
Cmx
public static final long Cmx
Le format de fichier CMX
Otg
public static final long Otg
Le format de fichier otg
Html5Canvas
public static final long Html5Canvas
Le format Html5 Canvas
Apng
public static final long Apng
Le format de fichier PNG animé.
Tga
public static final long Tga
Le format de fichier Truevision TGA.
Dxf
public static final long Dxf
Le format AutoCAD Drawing Exchange.
Emz
public static final long Emz
Le emz, emf compressé
Wmz
public static final long Wmz
Le WMZ, wmf compressé
Svgz
public static final long Svgz
Le SVGZ, svg compressé
FOdg
public static final long FOdg
Le format fodg, odg plat
Avif
public static final long Avif
Le format de fichier AVIF.
BigTiff
public static final long BigTiff
Le format Big Tiff.