How to change minimum or maximum value by CIFilter in Core image?

前端 未结 2 1770
南方客
南方客 2021-01-07 01:34

I\'m drawing several grayscale images in iOS. The values of grayscale image have minimum and maximum i.e. for 8 bit values in range [41,244].

I want to change minimu

2条回答
  •  温柔的废话
    2021-01-07 02:08

    For every effect in CIFilter we have minimum and maximum values . Either we can fix that value in code else if you want to fix ater drawing we done it by using UISlider for slider given minimum and maximum values as range of that filter then we can give action to that slider so when user moves effect also changes automatically.

提交回复
热议问题