Android图像彩色滤镜应用程序

时间:2017-09-04 12:56:43

标签: android photoshop

我想为android制作一个色彩效果应用程序。 如何通过Android Studio上的代码将颜色效果应用于图像?示例图像; enter image description here

enter image description here

我不知道如何通过代码实现图像的色彩效果。例如,如果我想从Photoshop实现此效果,我该怎么办? enter image description here

我期待的最终结果; IMAGE

1 个答案:

答案 0 :(得分:-1)

在图像顶部创建一个视图,并将背景颜色设置为所需的颜色并减少增加透明度

<FrameLayout
      android:height="wrap_content"
      android:width="wrap_content">
      <ImageView
          android:height="yourheight"
          android:width="yourwidth"
          android:src="@drawable/yourimage" />
      <View
          android:height="match_parent"
          android:width="match_parent"
          android:background="yourcolorinAGBRformat">
</FrameLayout>

谢谢!

相关问题