Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BraillePlot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Georg Graßnick
BraillePlot
Commits
6b63cd44
Commit
6b63cd44
authored
5 years ago
by
Leonard Kupper
Browse files
Options
Downloads
Patches
Plain Diff
Fix missing context and vicious punctuation that crept in while nobody was watching...
parent
8a4ee8e1
No related branches found
No related tags found
1 merge request
!13
Feat/rasterizer update 21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/tudresden/inf/mci/brailleplot/rendering/ImageRasterizer.java
+4
-4
4 additions, 4 deletions
...resden/inf/mci/brailleplot/rendering/ImageRasterizer.java
with
4 additions
and
4 deletions
src/main/java/de/tudresden/inf/mci/brailleplot/rendering/ImageRasterizer.java
+
4
−
4
View file @
6b63cd44
...
...
@@ -89,7 +89,7 @@ public class ImageRasterizer implements Rasterizer<Image> {
mLogger
.
info
(
"Rasterizing Image {}"
,
imgData
);
mLogger
.
trace
(
"Retrieving buffered image
.
"
);
mLogger
.
trace
(
"Retrieving buffered image"
);
// First, a readable representation of the is retrieved.
BufferedImage
imgBuf
=
imgData
.
getBufferedImage
();
...
...
@@ -159,7 +159,7 @@ public class ImageRasterizer implements Rasterizer<Image> {
}
}
}
mLogger
.
trace
(
"
Done!
"
);
mLogger
.
trace
(
"
Finished scanning the image
"
);
}
private
void
quantifiedPositionMapping
(
final
BufferedImage
imgBuf
,
final
RasterCanvas
canvas
)
{
...
...
@@ -170,8 +170,8 @@ public class ImageRasterizer implements Rasterizer<Image> {
// Instead of using the dot rectangle a rectangle representing the target printing space in millimeters
// is built from the canvas information.
mLogger
.
trace
(
"Determining available area (in mm):"
);
Rectangle
availableArea
=
new
Rectangle
(
0
,
0
,
canvas
.
getPrintableWidth
(),
canvas
.
getPrintableHeight
());
mLogger
.
trace
(
"Determined available area (in mm): {}"
,
availableArea
);
// Calculate the ratios between original image and target printable area. (mm / pixel)
double
hRatio
=
(
availableArea
.
getWidth
()
/
imgBuf
.
getWidth
());
...
...
@@ -212,7 +212,7 @@ public class ImageRasterizer implements Rasterizer<Image> {
}
}
}
mLogger
.
trace
(
"
Done!
"
);
mLogger
.
trace
(
"
Finished scanning the image
"
);
}
...
...
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