Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
00491a99
Commit
00491a99
authored
14 years ago
by
Richard Alam
Browse files
Options
Downloads
Patches
Plain Diff
- minor cleanup
parent
400f90b9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/ScreenCapture.java
+9
-8
9 additions, 8 deletions
...ava/org/bigbluebutton/deskshare/client/ScreenCapture.java
with
9 additions
and
8 deletions
deskshare/applet/src/main/java/org/bigbluebutton/deskshare/client/ScreenCapture.java
+
9
−
8
View file @
00491a99
...
...
@@ -30,9 +30,13 @@ import java.awt.Image;
import
java.awt.Rectangle
;
import
java.awt.RenderingHints
;
import
java.awt.Robot
;
import
java.awt.Toolkit
;
import
java.awt.Transparency
;
import
java.awt.image.BufferedImage
;
import
java.awt.image.BufferedImageOp
;
import
java.awt.image.ConvolveOp
;
import
java.awt.image.Kernel
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* The Capture class uses the java Robot class to capture the screen
...
...
@@ -73,7 +77,9 @@ public class ScreenCapture {
public
BufferedImage
takeSingleSnapshot
()
{
BufferedImage
capturedImage
=
robot
.
createScreenCapture
(
this
.
screenBounds
);
if
(
needToScaleImage
())
{
if
(
quality
)
return
useQuality
(
capturedImage
);
if
(
quality
)
{
return
useQuality
(
capturedImage
);
}
return
getScaledInstance
(
capturedImage
,
scaleWidth
,
scaleHeight
,
RenderingHints
.
VALUE_INTERPOLATION_BICUBIC
,
true
);
}
else
{
return
capturedImage
;
...
...
@@ -108,12 +114,7 @@ public class ScreenCapture {
g2
.
dispose
();
return
resultImage
;
}
/*
* GraphicsConfiguration GrphConfig = getGraphicsConfiguration();
BufferedImage offscreenBuf = GrphConfig.createCompatibleImage(bufWidth, bufHeight, Transparency.OPAQUE );
offscreenBuf.setAccelerationPriority(1);
*/
/**
* Convenience method that returns a scaled instance of the
* provided {@code BufferedImage}.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment