public class DefaultSplitBigTileImageTask extends java.lang.Object implements SplitBigTileImageTask
The default tile cutting implementation class.
| Constructor and Description |
|---|
DefaultSplitBigTileImageTask() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.image.BufferedImage |
convertBGRBufferImageType(java.awt.image.BufferedImage image)
outputMapToBitmap (boolean) interface of UGO out of the picture saved to jpg format using the JDK method will be infected with a layer of red UGO uses the outputMapToBitmap (boolean) interface to create a picture with a transparent channel and will set a default value but jpg only has three channels (no transparent channel), so JPG pictures will have a layer of red (suspected transparent channel value as Red value) because of the choice of mixed format out of the picture, the picture saved format is jpg is here where change bufferIamge channel to three channels
|
void |
convertToPng8(boolean value)
Converts to PNG8 format.
|
protected boolean |
needTransparentProcess(java.awt.image.BufferedImage subImage)
Judges whether or not transparent processing is required in the specified pixel matrix
|
void |
run() |
void |
setBigTileInfo(java.awt.image.BufferedImage image, int pColIndex, int pRowIndex, int pColCount, int pRowCount, Rectangle2D pRbounds, java.lang.String pFormatName, float compressionQuality, ScaleBuildConfig scaleConfig, double pResolution, java.lang.String tileVersion, java.util.concurrent.atomic.AtomicLong pStoreCount, TileColorType tileColorType)
Sets the bigTile information
|
void |
setBlankSizeThreshold(int value)
Sets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.
|
void |
setCurrentTask(TileTask value)
Binds the unit tile task.
|
void |
setExecutingState(TaskExecutingState taskExecutingState)
Sets task excuting state.
|
void |
setKvStore(KeyValueStore kvStore)
Sets the key-value storage.
|
void |
setListener(TileBuilder.BuildTileProcessListener value)
Sets the tile status listener
|
void |
setLogger(LocLogger value)
Sets the output log object.
|
void |
setTaskStartTime(long time)
Sets the task start time.
|
void |
setTileStore(TileStore value)
Sets tile storage.
|
void |
setTransparent(boolean pTransparent)
Sets whether the image is transparent.
|
void |
setWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)
Sets the white chart information list.
|
public void setBigTileInfo(java.awt.image.BufferedImage image,
int pColIndex,
int pRowIndex,
int pColCount,
int pRowCount,
Rectangle2D pRbounds,
java.lang.String pFormatName,
float compressionQuality,
ScaleBuildConfig scaleConfig,
double pResolution,
java.lang.String tileVersion,
java.util.concurrent.atomic.AtomicLong pStoreCount,
TileColorType tileColorType)
SplitBigTileImageTaskSets the bigTile information
setBigTileInfo in interface SplitBigTileImageTaskpublic void setKvStore(KeyValueStore kvStore)
SplitBigTileImageTaskSets the key-value storage.
setKvStore in interface SplitBigTileImageTaskpublic void setLogger(LocLogger value)
Sets the output log object.
value -public void run()
run in interface java.lang.Runnableprotected java.awt.image.BufferedImage convertBGRBufferImageType(java.awt.image.BufferedImage image)
outputMapToBitmap (boolean) interface of UGO out of the picture saved to jpg format using the JDK method will be infected with a layer of red UGO uses the outputMapToBitmap (boolean) interface to create a picture with a transparent channel and will set a default value but jpg only has three channels (no transparent channel), so JPG pictures will have a layer of red (suspected transparent channel value as Red value) because of the choice of mixed format out of the picture, the picture saved format is jpg is here where change bufferIamge channel to three channels
subImage -protected boolean needTransparentProcess(java.awt.image.BufferedImage subImage)
Judges whether or not transparent processing is required in the specified pixel matrix
subImage -public void setBlankSizeThreshold(int value)
SplitBigTileImageTaskSets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.
setBlankSizeThreshold in interface SplitBigTileImageTaskpublic void convertToPng8(boolean value)
SplitBigTileImageTaskConverts to PNG8 format.
convertToPng8 in interface SplitBigTileImageTaskpublic void setCurrentTask(TileTask value)
SplitBigTileImageTaskBinds the unit tile task.
setCurrentTask in interface SplitBigTileImageTaskpublic void setTransparent(boolean pTransparent)
SplitBigTileImageTaskSets whether the image is transparent.
setTransparent in interface SplitBigTileImageTaskpublic void setTileStore(TileStore value)
SplitBigTileImageTaskSets tile storage.
setTileStore in interface SplitBigTileImageTaskpublic void setExecutingState(TaskExecutingState taskExecutingState)
SplitBigTileImageTaskSets task excuting state.
setExecutingState in interface SplitBigTileImageTaskpublic void setListener(TileBuilder.BuildTileProcessListener value)
SplitBigTileImageTaskSets the tile status listener
setListener in interface SplitBigTileImageTaskpublic void setTaskStartTime(long time)
SplitBigTileImageTaskSets the task start time.
setTaskStartTime in interface SplitBigTileImageTaskpublic void setWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)
SplitBigTileImageTaskSets the white chart information list.
setWhiteInfos in interface SplitBigTileImageTask