
渲染
我的心里只有你
我说我的心里只有你
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PorterDuff及Xfermode详解
Xfermode有三个子类 : AvoidXfermode 指定了一个颜色和容差,强制Paint避免在它上面绘图(或者只在它上面绘图)。 PixelXorXfermode 当覆盖已有的颜色时,应用一个简单的像素异或操作。 PorterDuffXfermode 这是一个非常强大的转换模式,使用它,可以使用图像合成的16条Porter-Duff规则的任意一条来控制P原创 2015-09-13 22:18:48 · 976 阅读 · 0 评论 -
shader初探之BitmapShader
public BitmapShader(Bitmap bitmap,Shader.TileMode tileX,Shader.TileMode tileY) 调用这个方法来产生一个画有一个位图的渲染器(Shader)。 bitmap 在渲染器内使用的位图 tileX The tiling mode for x to draw the bitmap in. 在原创 2015-09-10 15:34:01 · 1142 阅读 · 0 评论 -
LinearGradient线性渲染
LinearGradient有两个构造函数; public LinearGradient(float x0, float y0, float x1, float y1, int[] colors, float[] positions,Shader.TileMode tile) 参数: float x0: 渐变起始点x坐标 float y0:渐变起始点y坐标原创 2015-09-13 21:53:08 · 830 阅读 · 0 评论 -
RadialGradient环形渲染
public RadialGradient(float x, float y, float radius, int[] colors, float[] positions,Shader.TileMode tile) float x: 圆心X坐标 float y: 圆心Y坐标 float radius: 半径 int[] colors: 渲染颜色数组原创 2015-09-13 21:58:12 · 479 阅读 · 0 评论 -
SweepGradient扫描渲染
public SweepGradient(float cx, float cy, int[] colors, float[] positions) Parameters: cx 渲染中心点x 坐标 cy 渲染中心y 点坐标 colors 围绕中心渲染的颜色数组,至少要有两种颜色值 positions 相对位置的颜色数组,可为null, 若为n原创 2015-09-13 22:02:29 · 8089 阅读 · 0 评论 -
ComposeShader组合渲染
public ComposeShader(Shader shaderA,Shader shaderB, Xfermode mode) Parameters shaderA 渲染器A,Shader及其子类对象 shaderB 渲染器B,Shader及其子类对象 mode 两种渲染器组合的模式,Xfermode对象原创 2015-09-13 22:10:24 · 617 阅读 · 0 评论