image processing - How can i work with Android EffectFactory Class? -
i tired develop sample application image processing, in app need add color effects (grayscale, sepia)
on bitmap referred developer documents doc 1 , doc 2, in document there no practical examples, need know whether can add vintage,sepia color effects using class, 1 guide me please, in advance.
update:
i tried this,
private effectcontext meffectcontext; bitmap b1 = bitmapfactory.decoderesource(getresources(), r.drawable.sample); effectfactory effectfactory = meffectcontext.getfactory(); effect meffect = effectfactory .createeffect(effectfactory.effect_sepia);
now how can set meffect bitmap?
try:
effect meffect= effectfactory.createeffect(effectfactory.effect_sepia);
then use glsurfaceview show rendered effects, here example of need
Comments
Post a Comment