-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Evgeniy Sidenko
committed
Aug 14, 2024
1 parent
55a893a
commit 2d0e2ca
Showing
4 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Examples/src/main/java/com/aspose/imaging/examples/dicom/SupportDicomYBR422.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.aspose.imaging.examples.dicom; | ||
|
||
import com.aspose.imaging.Image; | ||
import com.aspose.imaging.examples.Logger; | ||
import com.aspose.imaging.examples.Utils; | ||
|
||
public class SupportDicomYBR422 | ||
{ | ||
public static void main(String[] args) | ||
{ | ||
Logger.startExample(); | ||
// The path to the documents' directory. | ||
String dataDir = Utils.getSharedDataDir() + "dicom/"; | ||
String inputFile = dataDir + "input.dcm"; | ||
String outputFile = Utils.getOutDir() + "SupportDicomYBR422.png"; | ||
try (Image image = Image.load(inputFile)) | ||
{ | ||
image.save(outputFile); | ||
} | ||
|
||
Utils.deleteFile(outputFile); | ||
Logger.endExample(); | ||
} | ||
} |
Binary file not shown.