public interface Bitmap
In order to convert this bitmap to java.awt.image.BufferedImage
use the following
approach:
import java.awt.image.BufferedImage; import com.teamdev.jxbrowser.view.swing.BitmapUtil; ... BufferedImage image = BitmapUtil.toBufferedImage(bitmap);
The approach below demonstrates how to convert this bitmap to javafx.scene.image.Image
:
import javafx.scene.image.Image; import com.teamdev.jxbrowser.view.javafx.BitmapUtil; ... Image image = BitmapUtil.toImage(bitmap);
Modifier and Type | Method and Description |
---|---|
default byte[] |
pixels()
Returns a byte array that contains the pre-multiplied pixels of the binary image.
|
default Size |
size()
Returns
Size of this bitmap instance. |
default Size size()
Size
of this bitmap instance. The size can be empty.default byte[] pixels()