[libbluray-devel] BDGraphicsConfiguration: Added createCompatibleImage with transparency
hpi1
git at videolan.org
Tue Mar 18 21:24:08 CET 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Mar 18 22:22:30 2014 +0200| [ad50091ae21f2052ad2f4fb3384465480f35f84e] | committer: hpi1
BDGraphicsConfiguration: Added createCompatibleImage with transparency
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=ad50091ae21f2052ad2f4fb3384465480f35f84e
---
.../bdj/java-j2me/java/awt/BDGraphicsConfiguration.java | 6 ++++++
.../bdj/java-j2se/java/awt/BDGraphicsConfiguration.java | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsConfiguration.java b/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsConfiguration.java
index 04a6e08..a317e35 100644
--- a/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsConfiguration.java
+++ b/src/libbluray/bdj/java-j2me/java/awt/BDGraphicsConfiguration.java
@@ -57,6 +57,12 @@ class BDGraphicsConfiguration extends GraphicsConfiguration {
return BDImage.getBuffededImage(width, height, this);
}
+ public BufferedImage createCompatibleImage(int width, int height, int trans) {
+ if (width <= 0 || height <= 0)
+ return null;
+ return BDImage.getBuffededImage(width, height, this);
+ }
+
public VolatileImage createCompatibleVolatileImage(int width, int height) {
org.videolan.Logger.unimplemented("BDGraphicsConfiguration", "createCompatibleVolatileImage");
return null;
diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
index 08e4fc8..3b98984 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDGraphicsConfiguration.java
@@ -65,8 +65,9 @@ class BDGraphicsConfiguration extends GraphicsConfiguration {
}
public BufferedImage createCompatibleImage(int width, int height, int trans) {
- org.videolan.Logger.unimplemented("BDGraphicsConfiguration", "createCompatibleImage");
- return null;
+ if (width <= 0 || height <= 0)
+ return null;
+ return BDImage.getBuffededImage(width, height, this);
}
public BufferedImage createCompatibleImage(int width, int height) {
More information about the libbluray-devel
mailing list