English | Site Directory

Android - An Open Handset Alliance Project

android.graphics
public class

android.graphics.PorterDuffColorFilter

java.lang.Object
android.graphics.PorterDuffColorFilter

Summary

Public Constructors

          PorterDuffColorFilter()

Public Methods

      static  ColorFilter  create(int srcColor, Mode mode)
Create a colorfilter that uses the specified color and porter-duff mode.
Methods inherited from class java.lang.Object

Details

Public Constructors

public PorterDuffColorFilter()

Public Methods

public static ColorFilter create(int srcColor, Mode mode)

Create a colorfilter that uses the specified color and porter-duff mode.

Parameters

srcColor The source color used with the specified porter-duff mode
mode The porter-duff mode that is applied to each color in the colorfilter's filterSpan method

Returns

  • the new colorFilter object, or null if the porterDuffMode will have no effect.
Build m5-rc15g - 14 May 2008 12:50