首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Android 色环取色器模块代码

Android 色环取色器模块代码

  • 资源大小:572.01 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Android

资 源 简 介

Android 色环风格的取色器,用来拾取颜色,用于在字体颜色选择时,提供方便,在弹出的色环中,鼠标单选任意处,会将此点的颜色赋值给文字,改变文字的颜色。关于色环的定义,请参见以下代码部分:   private Paint mPaint;// 渐变色环画笔   private Paint mCenterPaint;// 中间圆画笔   private Paint mLinePaint;// 分隔线画笔   private Paint mRectPaint;// 渐变方块画笔   private Shader rectShader;// 渐变方块渐变图像   private float rectLeft;// 渐变方块左x坐标   private float rectTop;// 渐变方块右x坐标   private float rectRight;// 渐变方块上y坐标   private float rectBottom;// 渐变方块下y坐标   private final int[] mCircleColors;// 渐变色环颜色   private final int[] mRectColors;// 渐变方块颜色   private int mHeight;// View高   private int mWidth;// View宽   private float r;// 色环半径(paint中部)   private float centerRadius;// 中心圆半径   private boolean downInCircle = true;// 按在渐变环上   private boolean downInRect;// 按在渐变方块上   private boolean highlightCenter;// 高亮   private boolean highlightCenterLittle;// 微亮   更多代码细节请下载本源码。

文 件 列 表

codesc.net
ColorTest
.project
ColorTest
ColorTest
.classpath
codesc.net
VIP VIP
0.199318s