public class MacOSImageCapture extends ImageCapture
PROPERTY_IMAGE_SOURCEPROPERTY_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, toBufferedImageaddPropertyChangeListener, addPropertyChangeListener, getCaptureArea, getPropertyChangeSupport, isCaptureTransparentWindows, isIncludeCursor, removePropertyChangeListener, setCaptureArea, setCaptureTransparentWindows, setIncludeCursorpublic ImageCapture takeSnapshot()
ImageCaptureImageCapture.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 ImageCapturepublic java.awt.image.BufferedImage getImage()
ImageCaptureBefore calling this method you should invoke the ImageCapture.takeSnapshot() method first.
getImage in class ImageCapturepublic ImageCapture resize(java.awt.Dimension newSize, InterpolationMode interpolation)
ImageCaptureBefore calling this method you should invoke the ImageCapture.takeSnapshot() method first.
resize in class ImageCapturenewSize - specifies new dimensionsinterpolation - specifies interpolation modepublic boolean save(java.io.File file,
ImageFormat format,
CompressionQuality quality)
throws java.io.IOException
ImageCaptureBefore calling this method you should invoke the ImageCapture.takeSnapshot() method first.
save in class ImageCapturefile - destination fileformat - required image formatquality - required compression quality of resulting imagejava.io.IOException - if any error occurs during the operationpublic void release()
ImageCapturerelease in class ImageCapturepublic void copyToClipboard()
ImageCapturecopyToClipboard in class ImageCapture