Home | History | Annotate | Download | only in converters

Lines Matching refs:image

35 import com.jme3.texture.Image;
36 import com.jme3.texture.Image.Format;
41 import java.awt.image.*;
203 * Convert an AWT image to jME image.
205 public static void convert(BufferedImage image, Format format, ByteBuffer buf){
208 throw new UnsupportedOperationException("Image format " + format + " is not supported");
210 int width = image.getWidth();
211 int height = image.getHeight();
225 int argb = image.getRGB(x, y);
239 // Set full alpha if target image has no alpha
244 // image is in luminance format
271 public static void createData(Image image, boolean mipmaps){
272 int bpp = image.getFormat().getBitsPerPixel();
273 int w = image.getWidth();
274 int h = image.getHeight();
276 image.setData(BufferUtils.createByteBuffer(w*h*bpp/8));
289 image.setMipMapSizes(mipMapSizes);
290 image.setData(BufferUtils.createByteBuffer(total));
294 * Convert the image from the given format to the output format.
301 public static void convert(Image input, Image output){
367 public static BufferedImage convert(Image image, boolean do16bit, boolean fullalpha, int mipLevel){
368 Format format = image.getFormat();
369 DecodeParams p = params.get(image.getFormat());
373 int width = image.getWidth();
374 int height = image.getHeight();
382 ByteBuffer buf = image.getData(0);
443 mipPos += image.getMipMapSizes()[i];