Dimming an LED strip

I meant cant you just PWM the strip -though- the transistor as mentioned above??

(also...why the op-amp?)