Sorry, is my fault not state clearly, let me add on more info.
That constant current is use to control LED, a light source for camera, so I cannot use PWM which flickering, so a linear constant current must use. (as I know, may be there is other method)
Also, I may need to control at least 4ch, and max up to 32 ch, each channel is different brightness/ current source.
My idea is use V to I , so choose to use MOSFET or BJT as current control.
The input V can be DAC, but DAC is not cheap, so I choose D-Pot.
The resolution I need is about 8bit, or 256 steps.
I will consider Nigel Suggestion, using R2R, generate using 8bit shift register like CD4094, with this, I can have many ch too.
Thank you,