public final class ThumbnailCreator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ThumbnailCreator.Error
Error thrown if thumbnail creation fails.
|
Constructor and Description |
---|
ThumbnailCreator(boolean verbose) |
Modifier and Type | Method and Description |
---|---|
void |
create(java.io.File input)
Create thumbnail at standard location.
|
void |
create(java.io.File input,
java.io.File output,
int thumbnailSize,
boolean scale)
Create thumbnail.
|
java.lang.String |
getLastDescription() |
java.io.File |
getLastThumbnail() |
public void create(java.io.File input) throws ErrorMessage
ErrorMessage
public void create(java.io.File input, java.io.File output, int thumbnailSize, boolean scale) throws ErrorMessage
input
- The SGF fileoutput
- The output thumbnail. Null for standard filename in
.thumbnails/normalthumbnailSize
- The image size of the thumbnail.scale
- If true thumbnailSize will be scaled down for boards
smaller than 19.ErrorMessage
public java.lang.String getLastDescription()
public java.io.File getLastThumbnail()