|
@@ -1,5 +1,5 @@
|
|
/*
|
|
/*
|
|
- * Copyright (c) 2009-2012 jMonkeyEngine
|
|
|
|
|
|
+ * Copyright (c) 2009-2021 jMonkeyEngine
|
|
* All rights reserved.
|
|
* All rights reserved.
|
|
*
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -200,11 +200,14 @@ public class ImageToAwt {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
- * Convert an AWT image to jME image.
|
|
|
|
|
|
+ * Convert an AWT image to jME image. XXX not implemented yet!
|
|
|
|
+ *
|
|
|
|
+ * @param image the input image (not null, unaffected)
|
|
|
|
+ * @param format the data format
|
|
|
|
+ * @param buf the output buffer (not null, modified)
|
|
*/
|
|
*/
|
|
- public static void convert(BufferedImage image, Format format, ByteBuffer buf){
|
|
|
|
|
|
+ public static void convert(BufferedImage image, Format format, ByteBuffer buf) {
|
|
DecodeParams p = params.get(format);
|
|
DecodeParams p = params.get(format);
|
|
if (p == null)
|
|
if (p == null)
|
|
throw new UnsupportedOperationException("Image format " + format + " is not supported");
|
|
throw new UnsupportedOperationException("Image format " + format + " is not supported");
|
|
@@ -297,8 +300,8 @@ public class ImageToAwt {
|
|
* It is assumed that both images have buffers with the appropriate
|
|
* It is assumed that both images have buffers with the appropriate
|
|
* number of elements and that both have the same dimensions.
|
|
* number of elements and that both have the same dimensions.
|
|
*
|
|
*
|
|
- * @param input
|
|
|
|
- * @param output
|
|
|
|
|
|
+ * @param input the input image (not null, unaffected)
|
|
|
|
+ * @param output the output image (not null, modified)
|
|
*/
|
|
*/
|
|
public static void convert(Image input, Image output){
|
|
public static void convert(Image input, Image output){
|
|
DecodeParams inParams = params.get(input.getFormat());
|
|
DecodeParams inParams = params.get(input.getFormat());
|