|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.osx.OSXImageIO
public class OSXImageIO
OSXImageIO
can read images using the Mac OS X Cocoa NSImage API.
Images are read using the Cocoa class NSImage.
Method Summary | |
---|---|
static boolean |
isNativeCodeAvailable()
Returns true if native code is available. |
static java.awt.image.BufferedImage |
read(byte[] data)
Reads a BufferedImage from the supplied array using the
Cocoa NSImage API. |
static java.awt.image.BufferedImage |
read(java.io.File file)
Reads a BufferedImage from the supplied File
using the Cocoa NSImage API. |
static java.awt.image.BufferedImage |
read(java.io.File file,
int width,
int height)
Reads a BufferedImage scaled to the specified size
from the supplied File using the Cocoa NSImage API. |
static java.awt.image.BufferedImage |
readSystemClipboard()
Returns a BufferedImage as the result of decoding
the data in the Mac OS X system clipboard using the Cocoa NSImage API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.image.BufferedImage read(java.io.File file) throws java.io.IOException
BufferedImage
from the supplied File
using the Cocoa NSImage API.
java.io.IOException
public static java.awt.image.BufferedImage read(java.io.File file, int width, int height) throws java.io.IOException
BufferedImage
scaled to the specified size
from the supplied File
using the Cocoa NSImage API.
file
- The file containing the image.width
- The preferred width.height
- The preferred height.
java.io.IOException
public static java.awt.image.BufferedImage read(byte[] data) throws java.io.IOException
BufferedImage
from the supplied array using the
Cocoa NSImage API.
java.io.IOException
public static java.awt.image.BufferedImage readSystemClipboard() throws java.io.IOException
BufferedImage
as the result of decoding
the data in the Mac OS X system clipboard using the Cocoa NSImage API.
java.io.IOException
public static boolean isNativeCodeAvailable()
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |