public class MacOSImageCapture extends ImageCapture
PROPERTY_IMAGE_SOURCE
PROPERTY_CAPTURE_AREA, PROPERTY_CAPTURE_TRANSPARENT_WINDOWS, PROPERTY_INCLUDE_CURSOR
Constructor and Description |
---|
MacOSImageCapture() |
Modifier and Type | Method and Description |
---|---|
void |
copyToClipboard()
Copies this capture to the system clipboard as a bitmap.
|
java.awt.image.BufferedImage |
getImage()
Returns a Java image of this image capture.
|
void |
release()
Releases all resources of this image capture.
|
ImageCapture |
resize(java.awt.Dimension newSize,
InterpolationMode interpolation)
Resizes this image capture to new dimensions using the specified interpolation mode.
|
boolean |
save(java.io.File file,
ImageFormat format,
CompressionQuality quality)
Saves this image capture to a file with the specified image format.
|
ImageCapture |
takeSnapshot()
Takes a snapshot of a specified capture area.
|
create, create, create, getImageSource, resize, save, setImageSource, toBufferedImage
addPropertyChangeListener, addPropertyChangeListener, getCaptureArea, getPropertyChangeSupport, isCaptureTransparentWindows, isIncludeCursor, removePropertyChangeListener, setCaptureArea, setCaptureTransparentWindows, setIncludeCursor
public ImageCapture takeSnapshot()
ImageCapture
ImageCapture.resize(java.awt.Dimension, InterpolationMode)
method,
or saved to the file using the ImageCapture.save(java.io.File, com.teamdev.jxcapture.image.ImageFormat, CompressionQuality)
method, or just returned as Java image using
the ImageCapture.getImage()
method.takeSnapshot
in class ImageCapture
public java.awt.image.BufferedImage getImage()
ImageCapture
Before calling this method you should invoke the ImageCapture.takeSnapshot()
method first.
getImage
in class ImageCapture
public ImageCapture resize(java.awt.Dimension newSize, InterpolationMode interpolation)
ImageCapture
Before calling this method you should invoke the ImageCapture.takeSnapshot()
method first.
resize
in class ImageCapture
newSize
- specifies new dimensionsinterpolation
- specifies interpolation modepublic boolean save(java.io.File file, ImageFormat format, CompressionQuality quality) throws java.io.IOException
ImageCapture
Before calling this method you should invoke the ImageCapture.takeSnapshot()
method first.
save
in class ImageCapture
file
- destination fileformat
- required image formatquality
- required compression quality of resulting imagejava.io.IOException
- if any error occurs during the operationpublic void release()
ImageCapture
release
in class ImageCapture
public void copyToClipboard()
ImageCapture
copyToClipboard
in class ImageCapture