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)
SplitBigTileImageTask
Sets the bigTile information
setBigTileInfo
in interface SplitBigTileImageTask
public void setKvStore(KeyValueStore kvStore)
SplitBigTileImageTask
Sets the key-value storage.
setKvStore
in interface SplitBigTileImageTask
public void setLogger(LocLogger value)
Sets the output log object.
value
-public void run()
run
in interface java.lang.Runnable
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
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)
SplitBigTileImageTask
Sets the BlankTile upper limit, and when the cap is not reached, BlankTile is written to whiteInfos.
setBlankSizeThreshold
in interface SplitBigTileImageTask
public void convertToPng8(boolean value)
SplitBigTileImageTask
Converts to PNG8 format.
convertToPng8
in interface SplitBigTileImageTask
public void setCurrentTask(TileTask value)
SplitBigTileImageTask
Binds the unit tile task.
setCurrentTask
in interface SplitBigTileImageTask
public void setTransparent(boolean pTransparent)
SplitBigTileImageTask
Sets whether the image is transparent.
setTransparent
in interface SplitBigTileImageTask
public void setTileStore(TileStore value)
SplitBigTileImageTask
Sets tile storage.
setTileStore
in interface SplitBigTileImageTask
public void setExecutingState(TaskExecutingState taskExecutingState)
SplitBigTileImageTask
Sets task excuting state.
setExecutingState
in interface SplitBigTileImageTask
public void setListener(TileBuilder.BuildTileProcessListener value)
SplitBigTileImageTask
Sets the tile status listener
setListener
in interface SplitBigTileImageTask
public void setTaskStartTime(long time)
SplitBigTileImageTask
Sets the task start time.
setTaskStartTime
in interface SplitBigTileImageTask
public void setWhiteInfos(java.util.concurrent.ConcurrentHashMap<java.lang.String,WhiteTileInfo> whiteInfos)
SplitBigTileImageTask
Sets the white chart information list.
setWhiteInfos
in interface SplitBigTileImageTask