Shader.TileModeintColors, mTileMode, shaderColors| 构造器 | 说明 |
|---|---|
PixelMapShader() |
Default constructor used to create a
PixelMapShader instance. |
PixelMapShader(PixelMapHolder holder,
Shader.TileMode horizontalTileMode,
Shader.TileMode verticalTileMode) |
A constructor used to create a
PixelMapShader instance based on the specified PixelMapHolder
and the tile modes in horizontal and vertical directions. |
public PixelMapShader()
PixelMapShader instance.
Calling this constructor will automatically invoke
PixelMapShader#PixelMapShader(PixelMapHolder, TileMode, TileMode) to create a bitmap shader.
public PixelMapShader(PixelMapHolder holder, Shader.TileMode horizontalTileMode, Shader.TileMode verticalTileMode)
PixelMapShader instance based on the specified PixelMapHolder
and the tile modes in horizontal and vertical directions.holder - Indicates the pixelmap holder where the pixelmap is to be rendered into texture.horizontalTileMode - Indicates the tile mode used to shade pixelmaps in horizontal direction
when the drawn object exceeds the shading area defined by the pixelmap shader.verticalTileMode - Indicates the tile mode used to shade pixelmaps in vertical direction
when the drawn object exceeds the shading area defined by the pixelmap shader.