RawDataSettings

Inheritance: java.lang.Object

public class RawDataSettings

原始数据设置

构造函数

构造函数描述
RawDataSettings()已初始化为空实例。
RawDataSettings(RawDataSettings origin)初始化 origin 的副本。

方法

方法描述
getPixelDataFormat()获取像素数据格式
setPixelDataFormat(PixelDataFormat value)设置像素数据格式
getColorPalette()获取颜色调色板
setColorPalette(IColorPalette value)设置颜色调色板
getDitheringMethod()获取用于原始数据转换的抖动方法
setDitheringMethod(int value)设置用于原始数据转换的抖动方法
getIndexedColorConverter()获取索引颜色转换器
setIndexedColorConverter(IIndexedColorConverter value)设置索引颜色转换器
getCustomColorConverter()获取自定义颜色转换器
setCustomColorConverter(IColorConverter value)设置自定义颜色转换器
getFallbackIndex()获取当调色板索引超出范围时使用的回退索引
setFallbackIndex(int value)设置当调色板索引超出范围时使用的回退索引
getLineSize()获取用于原始数据处理的像素行大小(字节)
setLineSize(int value)设置用于原始数据处理的像素行大小(字节)
copy()创建浅拷贝。

RawDataSettings()

public RawDataSettings()

已初始化为空实例。

RawDataSettings(RawDataSettings origin)

public RawDataSettings(RawDataSettings origin)

初始化 origin 的副本。用于 copy()

Parameters:

参数类型描述
originRawDataSettings要复制的实例。

getPixelDataFormat()

public PixelDataFormat getPixelDataFormat()

获取像素数据格式

Returns: PixelDataFormat - The pixel data format

setPixelDataFormat(PixelDataFormat value)

public void setPixelDataFormat(PixelDataFormat value)

设置像素数据格式

Parameters:

参数类型描述
valuePixelDataFormat像素数据格式

getColorPalette()

public IColorPalette getColorPalette()

获取颜色调色板

Returns: IColorPalette - The color palette

setColorPalette(IColorPalette value)

public void setColorPalette(IColorPalette value)

设置颜色调色板

Parameters:

参数类型描述
valueIColorPalette颜色调色板

getDitheringMethod()

public int getDitheringMethod()

获取用于原始数据转换的抖动方法

Returns: int - 用于原始数据转换的抖动方法

setDitheringMethod(int value)

public void setDitheringMethod(int value)

设置用于原始数据转换的抖动方法

Parameters:

参数类型描述
valueint用于原始数据转换的抖动方法

getIndexedColorConverter()

public IIndexedColorConverter getIndexedColorConverter()

获取索引颜色转换器

Returns: IIndexedColorConverter - The indexed color converter

setIndexedColorConverter(IIndexedColorConverter value)

public void setIndexedColorConverter(IIndexedColorConverter value)

设置索引颜色转换器

Parameters:

参数类型描述
valueIIndexedColorConverter索引颜色转换器

getCustomColorConverter()

public IColorConverter getCustomColorConverter()

获取自定义颜色转换器

Returns: IColorConverter - The custom color converter

setCustomColorConverter(IColorConverter value)

public void setCustomColorConverter(IColorConverter value)

设置自定义颜色转换器

Parameters:

参数类型描述
valueIColorConverter自定义颜色转换器

getFallbackIndex()

public int getFallbackIndex()

获取当调色板索引超出范围时使用的回退索引

Returns: int - 当调色板索引超出范围时使用的回退索引

setFallbackIndex(int value)

public void setFallbackIndex(int value)

设置当调色板索引超出范围时使用的回退索引

Parameters:

参数类型描述
valueint当调色板索引超出范围时使用的回退索引

getLineSize()

public int getLineSize()

获取用于原始数据处理的像素行大小(字节)

Returns: int - 用于原始数据处理的像素行大小(字节)

setLineSize(int value)

public void setLineSize(int value)

设置用于原始数据处理的像素行大小(字节)

Parameters:

参数类型描述
valueint原始数据处理的像素行大小(字节)

copy()

public T <T>copy()

创建浅拷贝。

Returns: T - 浅拷贝。