2.5 to 4.5 volts I need to level shift to 0 to 10 volts
If you have access to a negative rail of 2.5 volts you can use a 1:1 potential divider between the input and -2.5 volts. The centre point of the voltage divider will now be 0 volts when the input is +2.5 volts and it will be +1 volt when 4.5 volts is applied to the input.

So follow this with a gain of ten op-amp and you have a solution. If your negative rail is say -5 volts (or something else) follow this link to a calculator that can help: -



The picture above shows an input at +2.5 volts and the output at 0 volts. Gain is always going to be 5 because that is the output range divided by the input range i.e. 10/(4.5 - 2.5).

You can double check that the output rises to 10 volts when the input is set at +4.5 volts (with no change in R2, R3 or R4).